1
0
Fork 0
fgdata/Shaders/light-cone.frag
vmmeazza b98fcba700 Add stencil light shaders by Lauri Peltonen (Zan).
Please Note:

There is a problem with this implementation when the light cone crosses
the near/far camera boundary.
2010-01-31 10:36:38 +00:00

9 lines
265 B
GLSL

varying float fogCoord;
void main()
{
vec4 fragColor = gl_FrontMaterial.ambient;
// float fogFactor = exp(-gl_Fog.density * gl_Fog.density * fogCoord * fogCoord);
// gl_FragColor = mix(gl_Fog.color, fragColor, fogFactor);
gl_FragColor = fragColor;
}