View Full Version : Lighting model pre-defined uniforms?

10-10-2011, 10:33 AM
Ok my idiot hat is on today, and apologies for that in advance, but I can't for the life of me figure out how to get the lighting model ambient parameter in GLSL. Is this only available to fixed-functionality, or am I doing the following wrong?:

vec4 lm_ambient = gl_LightModelParameters.ambient;

Thanks for your help.


10-10-2011, 11:12 AM
nevermind, clever cap back on, this worked lol:

vec4 lm_ambient = gl_LightModel.ambient;