paysages3d/src/render/opengl/shaders/terrain.vert
Michaël Lemaire cd9f1bd34c Removed unused glsl precision qualifiers
Only useful in OpenGL-ES, which is not currently supported
2015-12-31 01:09:45 +01:00

15 lines
282 B
GLSL

in vec4 vertex;
in vec2 uv;
uniform mat4 viewMatrix;
out vec3 unprojected;
out vec2 texcoord;
uniform float waterOffset;
void main(void)
{
vec4 final = vertex + vec4(0, waterOffset, 0, 0);
unprojected = final.xyz;
texcoord = uv;
gl_Position = viewMatrix * final;
}