share/hedgewars/Data/Shaders/default.fs
author Wolfgang Steffens <WolfgangSteff@gmail.com>
Mon, 28 May 2012 10:38:27 +0200
changeset 7138 f8248bcba8f1
parent 7129 0ce4f478ea6c
child 7188 580cd247511e
permissions -rw-r--r--
moved generic matrix code to uMatrix.pas updated shader and client logic to use a mat4 rather than ftransform or gl_ModelViewProjectionMatrix.

// !!!just testing!!! 
// This is not GLSL 1.3+ compatible, as its using the compatibility profile!
uniform sampler2D tex0;
varying vec4 tint;

void main()
{
    gl_FragColor = texture2D(tex0, gl_TexCoord[0].st) * tint;
}