Global uniforms


I just finished my first big project using OpenGL and came in some troubles using GLSL. If I want to specifiy a global uniform, for example the object matrix I have either pass this value to every shader or I have to use texture matrices (which I did).
So my question: are there any plans for global uniforms for GLSL? Or do I have to search for bulit-in uniforms and use them?

ive got no idea about future plans but what i use are the gl_Lights for global stuff (i dont use lighting so its sitting around doing nothing)
and with 8 lights * AMBIENT,DIFFUSE,POSITION etc u have heaps of space

I also use state uniforms as “global” uniforms. But it feels rather odd. I´d like to see a clean api for this in GLSL one day.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.