X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Ffunction_overloading.glsl;h=411776b648392921dc486c425bb56358925ebe77;hb=97d26f5179e82cd2faf476a9605f8a4f4b33a926;hp=a44c00d4459fe1bce58e4fb680b46bed03315507;hpb=4b9c9f565bb0335034dc8c2c7ad833ee42251d5d;p=libs%2Fgl.git diff --git a/tests/glsl/function_overloading.glsl b/tests/glsl/function_overloading.glsl index a44c00d4..411776b6 100644 --- a/tests/glsl/function_overloading.glsl +++ b/tests/glsl/function_overloading.glsl @@ -29,6 +29,8 @@ void main() frag_color = srgb_to_linear(texture(tex, texcoord)); } +// Target API: OpenGL + /* Expected output: vertex layout(location=0) uniform mat4 mvp; layout(location=0) in vec4 position; @@ -38,6 +40,7 @@ void main() { _vs_out_texcoord = texcoord; gl_Position = mvp*position; + gl_Position.z = gl_Position.z*2.0-gl_Position.w; } */