1
0
Fork 0
fgdata/Shaders/crop.vert
timoore 943ba2a4fe Till Busch - effects, shaders and textures for crop and water effects
Incorporated changes to effects file syntax. Changed Till's landmass
to mix in the base terrain texture. Some shader cleanup.

Also, add a GUI control for enabling shaders.
2009-08-08 10:17:58 +00:00

20 lines
402 B
GLSL

#version 120
varying vec4 rawpos;
varying vec4 ecPosition;
varying vec3 VNormal;
varying vec3 Normal;
centroid varying vec4 ipos;
void main(void)
{
gl_TexCoord[0] = gl_MultiTexCoord0;
rawpos = gl_Vertex;
ipos = gl_Vertex;
ecPosition = gl_ModelViewMatrix * gl_Vertex;
VNormal = normalize(gl_NormalMatrix * gl_Normal);
Normal = normalize(gl_Normal);
gl_Position = ftransform();
}