]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/parentheses.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / parentheses.glsl
index a1cd9b88f9339762127650c84ca0ee3ef00ffbd1..7eb6512b2ae5f125711b493f2d1604c7b70fffc3 100644 (file)
@@ -32,6 +32,8 @@ void main()
        frag_color = vec4(material_color*l*occlusion, 1.0);
 }
 
+// Target API: OpenGL
+
 /* Expected output: vertex
 layout(location=0) uniform mat4 mvp;
 layout(location=4) uniform vec3 offset;
@@ -45,6 +47,7 @@ void main()
        gl_Position = mvp*(position+vec4(offset, 1.0));
        _vs_out_normal = normal;
        _vs_out_texcoord = texcoord;
+       gl_Position.z = gl_Position.z*2.0-gl_Position.w;
 }
 */