]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/array_in_uniform_block.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / array_in_uniform_block.glsl
index 3d53b3dece3c599ad8231d808c661be5754b045b..c2e09f3e7eed4b60ba3b9f715cd3bb09f633b5fa 100644 (file)
@@ -35,6 +35,8 @@ void main()
        frag_color = vec4(color, 1.0);
 }
 
+// Target API: OpenGL
+
 /* Expected output: vertex
 struct LightParams
 {
@@ -59,6 +61,7 @@ void main()
   mat4 _temp = view_matrix*model_matrix;
   eye_normal = mat3(_temp[0].xyz, _temp[1].xyz, _temp[2].xyz)*normal;
   gl_Position = proj_matrix*view_matrix*model_matrix*position;
+  gl_Position.z = gl_Position.z*2.0-gl_Position.w;
 }
 */