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