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.