share/hedgewars/Data/Shaders/default.vs
changeset 7188 580cd247511e
parent 7138 f8248bcba8f1
child 11317 62287d4044e7
--- a/share/hedgewars/Data/Shaders/default.vs	Tue Jun 05 22:17:06 2012 +0200
+++ b/share/hedgewars/Data/Shaders/default.vs	Tue Jun 05 22:37:36 2012 +0200
@@ -1,11 +1,16 @@
-// !!!just testing!!! 
-// This is not GLSL 1.3+ compatible, as its using the compatibility profile!
+#version 130
+
+in vec2 vertex;
+in vec2 texcoord;
+in vec4 colors;
+
+out vec2 tex;
+
 uniform mat4 mvp;
-varying vec4 tint;
 
 void main()
 {
-    gl_Position = mvp * gl_Vertex;
-    gl_TexCoord[0] = gl_MultiTexCoord0;
-    tint = gl_Color;
+    vec4 p = mvp * vec4(vertex, 0.0f, 1.0f);
+    gl_Position = p;
+    tex = texcoord;
 }