share/hedgewars/Data/Shaders/default.fs
changeset 7188 580cd247511e
parent 7129 0ce4f478ea6c
child 11317 62287d4044e7
--- a/share/hedgewars/Data/Shaders/default.fs	Tue Jun 05 22:17:06 2012 +0200
+++ b/share/hedgewars/Data/Shaders/default.fs	Tue Jun 05 22:37:36 2012 +0200
@@ -1,9 +1,13 @@
-// !!!just testing!!! 
-// This is not GLSL 1.3+ compatible, as its using the compatibility profile!
+#version 130
+
 uniform sampler2D tex0;
-varying vec4 tint;
+uniform vec4 tint;
+
+in vec2 tex;
+
+out vec4 color;
 
 void main()
 {
-    gl_FragColor = texture2D(tex0, gl_TexCoord[0].st) * tint;
+    color = texture(tex0, tex) * tint;
 }