]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/uniform_location_allocation.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / uniform_location_allocation.glsl
index f0ab84762bed751a968744b34ca5f250dac47e95..65321047b7748ffa0d86f39d2233bf7caaa88340 100644 (file)
@@ -18,6 +18,8 @@ void main()
        frag_color = color*vec4(texture(heightmap, texcoord).rrr, 1.0);
 }
 
+// Target API: OpenGL
+
 /* Expected output: vertex
 layout(location=1) uniform mat4 mvp;
 layout(location=0, binding=16) uniform sampler2D heightmap;
@@ -28,6 +30,7 @@ void main()
 {
   gl_Position = mvp*vec4(position, texture(heightmap, texcoord).r, 1.0);
   _vs_out_texcoord = texcoord;
+  gl_Position.z = gl_Position.z*2.0-gl_Position.w;
 }
 */