share/hedgewars/Data/Shaders/default.fs
author Wolfgang Steffens <WolfgangSteff@gmail.com>
Tue, 05 Jun 2012 22:37:36 +0200
changeset 7188 580cd247511e
parent 7129 0ce4f478ea6c
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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7188
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
     1
#version 130
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
     2
7129
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     3
uniform sampler2D tex0;
7188
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
     4
uniform vec4 tint;
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
     5
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
     6
in vec2 tex;
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
     7
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
     8
out vec4 color;
7129
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     9
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
    10
void main()
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
    11
{
7188
580cd247511e Removed leftover FFP code: We should now be GL2 GLSL1.30+ forward compatible.
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents: 7129
diff changeset
    12
    color = texture(tex0, tex) * tint;
7129
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
    13
}