share/hedgewars/Data/Shaders/default.fs
author Wolfgang Steffens <WolfgangSteff@gmail.com>
Fri, 25 May 2012 09:00:54 +0200
changeset 7129 0ce4f478ea6c
child 7188 580cd247511e
permissions -rw-r--r--
initial GLSL1.2 test version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7129
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     1
// !!!just testing!!! 
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     2
// This is not GLSL 1.3+ compatible, as its using the compatibility profile!
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     3
uniform sampler2D tex0;
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     4
varying vec4 tint;
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     5
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     6
void main()
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     7
{
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     8
    gl_FragColor = texture2D(tex0, gl_TexCoord[0].st) * tint;
0ce4f478ea6c initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
diff changeset
     9
}