share/hedgewars/Data/Shaders/default.vs
author Wolfgang Steffens <WolfgangSteff@gmail.com>
Tue, 05 Jun 2012 22:37:36 +0200
changeset 7188 580cd247511e
parent 7138 f8248bcba8f1
child 11317 62287d4044e7
permissions -rw-r--r--
Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible. Added a seperate shader for the gradient used for water drawing. Disabled 3D mode for GL2 codepath as this still has some FFP left.

#version 130

in vec2 vertex;
in vec2 texcoord;
in vec4 colors;

out vec2 tex;

uniform mat4 mvp;

void main()
{
    vec4 p = mvp * vec4(vertex, 0.0f, 1.0f);
    gl_Position = p;
    tex = texcoord;
}