0ad/binaries/data/mods/public/shaders/glsl/waves.vs
wraitii f3984a6c0e Forgot the waves shader.
This was SVN commit r12803.
2012-10-31 18:54:10 +00:00

14 lines
245 B
GLSL

#version 110
attribute vec3 a_vertex;
attribute vec2 a_uv0;
uniform float mapSize;
void main()
{
gl_Position = gl_ModelViewProjectionMatrix * vec4(a_vertex, 1.0);
gl_TexCoord[0].st = a_uv0;
gl_TexCoord[0].zw = vec2(a_vertex.xz)/mapSize;
}