Debian Codegraph @

Shaders/include_fog.vert

raw
1 #version 120
2 //varying float fogCoord;
3 varying vec3 PointPos;
4 //varying vec4 EyePos;
5
6 void fog_Func(int type)
7 {
8 PointPos = (gl_ModelViewMatrix * gl_Vertex).xyz;
9 //PointPos = gl_Vertex;
10 //EyePos = gl_ModelViewMatrixInverse * vec4(0.0,0.0,0.0,1.0);
11 //fogCoord = abs(ecPosition.z);
12 }