first working version
[shapestoy] / sdr / foo.v.glsl
index 1e8d9b6..ce9586b 100644 (file)
@@ -1,12 +1,14 @@
 attribute vec4 attr_vertex, attr_color;
 attribute vec2 attr_texcoord;
 
+uniform mat4 matrix_modelview_projection;
+
 varying vec4 color;
 varying vec2 texcoord;
 
 void main()
 {
-       gl_Position = attr_vertex;
+       gl_Position = matrix_modelview_projection * attr_vertex;
        texcoord = attr_texcoord;
        color = attr_color;
 }