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

12 lines
219 B
GLSL

uniform vec3 windDir;
void main()
{
gl_TexCoord[0] = gl_MultiTexCoord0;
vec4 vertexPosition = gl_Vertex;
vertexPosition.xyz += windDir * gl_Color.r;
gl_Position = gl_ModelViewProjectionMatrix * vertexPosition;
}