stk-code_catmod/data/shaders/displace.vert
2013-11-30 21:33:06 +00:00

10 lines
201 B
GLSL

varying float camdist;
void main() {
gl_Position = ftransform();
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_TexCoord[1] = gl_MultiTexCoord1;
camdist = length((gl_ModelViewMatrix * gl_Vertex).xyz);
}