V-man
11-24-2004, 06:44 AM
Hi,
Let's say I have many shaders in my program, and all have the same uniforms and constants : some color value, some position value, a constant like (9.0, 50.0, 1.0, 2.0)
Instead of linking a program, then getting the uniform locations, and updating each shader, I would like to do it once for all the shaders.
Also, the uniforms may be updated every frame. I would like to do it for all the shaders in one shot.
Let's say I have many shaders in my program, and all have the same uniforms and constants : some color value, some position value, a constant like (9.0, 50.0, 1.0, 2.0)
Instead of linking a program, then getting the uniform locations, and updating each shader, I would like to do it once for all the shaders.
Also, the uniforms may be updated every frame. I would like to do it for all the shaders in one shot.