using a texture for the grid is better
[vrfileman] / sdr / grid.v.glsl
index 9f102eb..d6bda6e 100644 (file)
@@ -1,8 +1,8 @@
-varying vec3 pos, vpos;
+varying vec3 vpos;
 
 void main()
 {
        gl_Position = ftransform();
 
 void main()
 {
        gl_Position = ftransform();
-       pos = gl_Vertex.xyz;
        vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
        vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
+       gl_TexCoord[0].xy = gl_Vertex.xz * 500.0;
 }
 }