I’m trying to write a GLSL vertex shader and am getting a compiler error on the following line:
const float fogDensity = gl_Fog.density;
warning C1059: non constant expression in initialization
the code looks alright to me. Anybody have an idea why I’d be getting this warning and how to resolve it?