2011-11-27 23:59:33 +00:00
|
|
|
//varying float fogCoord;
|
|
|
|
varying vec3 PointPos;
|
|
|
|
//varying vec4 EyePos;
|
|
|
|
|
2011-12-01 21:07:48 +00:00
|
|
|
void fog_Func(int type)
|
2011-11-27 23:59:33 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|