X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fglsl%2Fconstructors.glsl;fp=tests%2Fglsl%2Fconstructors.glsl;h=151ee5ef6f26bd088020c74cb4142bbd579db72d;hb=97d26f5179e82cd2faf476a9605f8a4f4b33a926;hp=9b878e49727c3dbf9ccc7e3d65668292ec35adfc;hpb=4b9c9f565bb0335034dc8c2c7ad833ee42251d5d;p=libs%2Fgl.git diff --git a/tests/glsl/constructors.glsl b/tests/glsl/constructors.glsl index 9b878e49..151ee5ef 100644 --- a/tests/glsl/constructors.glsl +++ b/tests/glsl/constructors.glsl @@ -26,6 +26,8 @@ void main() frag_color = vec4(vec3(dot(normal, normalize(tbn_light_dir))), 1); } +// Target API: OpenGL + /* Expected output: vertex layout(location=0) uniform mat4 model; layout(location=4) uniform mat4 view_projection; @@ -43,6 +45,7 @@ void main() tbn_light_dir = mat3(normal_matrix*tangent, normal_matrix*binormal, normal_matrix*normal)*light_dir; gl_Position = view_projection*model*vec4(position, 1.0); _vs_out_texcoord = texcoord; + gl_Position.z = gl_Position.z*2.0-gl_Position.w; } */