Lighting model pre-defined uniforms?

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.


nevermind, clever cap back on, this worked lol:

vec4 lm_ambient = gl_LightModel.ambient;

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