1
0
Fork 0
fgdata/Shaders/include_fog.vert
Vivian Meazza 35b5beb0a3 Amend fog function
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-01 21:07:48 +00:00

11 lines
282 B
GLSL

//varying float fogCoord;
varying vec3 PointPos;
//varying vec4 EyePos;
void fog_Func(int type)
{
PointPos = (gl_ModelViewMatrix * gl_Vertex).xyz;
//PointPos = gl_Vertex;
//EyePos = gl_ModelViewMatrixInverse * vec4(0.0,0.0,0.0,1.0);
//fogCoord = abs(ecPosition.z);
}