i have 5 bool variables in my shader. the first 2 of them work properly. But the other 3 are not correctly in my shader. I can change them how i want, they always have the same value:
Code: Select all
bool settings[PG_COUNT];
...
services->setVertexShaderConstant("en_projected_grid", &settings[PG_ENABLE_PROJECTED_GRID], 1);
services->setVertexShaderConstant("en_displacement", &settings[PG_ENABLE_DISPLACEMENT], 1);
services->setVertexShaderConstant("en_refraction", &settings[PG_ENABLE_REFRACTION], 1);
services->setPixelShaderConstant("en_reflexion", &settings[PG_ENABLE_REFLEXION], 1);
services->setPixelShaderConstant("en_specular_lighting", &settings[PG_ENABLE_SPECULAR_LIGHTING], 1);
PS: I use shader 3.0