PDA

View Full Version : glUniformARB(....), how many times?



ei05tbe
07-24-2010, 07:11 AM
How many times do you have to set the value of the uniforms? only when you create and compile a shader or every time before you use it with glUseProgram(programID);

Regards

DmitryM
07-24-2010, 07:15 AM
The values are part of the program state, so there is no need to pass them each time you activate the program.

ei05tbe
07-24-2010, 07:42 AM
Ok thanks!