10 lines
168 B
GLSL
10 lines
168 B
GLSL
|
varying float fogCoord;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
vec3 ecPosition = vec3(gl_ModelViewMatrix * gl_Vertex);
|
||
|
|
||
|
gl_Position = ftransform();
|
||
|
fogCoord = abs(ecPosition.z);
|
||
|
}
|