X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fparentheses.glsl;h=7eb6512b2ae5f125711b493f2d1604c7b70fffc3;hb=97d26f5179e82cd2faf476a9605f8a4f4b33a926;hp=a1cd9b88f9339762127650c84ca0ee3ef00ffbd1;hpb=4b9c9f565bb0335034dc8c2c7ad833ee42251d5d;p=libs%2Fgl.git diff --git a/tests/glsl/parentheses.glsl b/tests/glsl/parentheses.glsl index a1cd9b88..7eb6512b 100644 --- a/tests/glsl/parentheses.glsl +++ b/tests/glsl/parentheses.glsl @@ -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; } */