1
0
Fork 0
fgdata/Shaders/landmass.vert
timoore dfb8181f34 more ATI fixes for crops and landmass shaders
Same problem with material state, except this time with the diffuse component.


Author: Tim Moore <timoore@redhat.com>
2010-02-12 14:43:26 +00:00

19 lines
555 B
GLSL

varying vec4 rawpos;
varying vec4 ecPosition;
varying vec3 VNormal;
varying vec3 Normal;
varying vec4 constantColor;
void main(void)
{
rawpos = gl_Vertex;
ecPosition = gl_ModelViewMatrix * gl_Vertex;
VNormal = normalize(gl_NormalMatrix * gl_Normal);
Normal = normalize(gl_Normal);
gl_FrontColor = gl_Color;
constantColor = gl_FrontMaterial.emission
+ gl_Color * (gl_LightModel.ambient + gl_LightSource[0].ambient);
gl_Position = ftransform();
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
}