1
0
Fork 0
fgdata/Shaders/light-cone.vert
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
168 B
GLSL

varying float fogCoord;
void main()
{
vec3 ecPosition = vec3(gl_ModelViewMatrix * gl_Vertex);
gl_Position = ftransform();
fogCoord = abs(ecPosition.z);
}