X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fparentheses.glsl;h=7eb6512b2ae5f125711b493f2d1604c7b70fffc3;hb=215d5bed27ad3de92557ae1b631695a036d29741;hp=24635017a43093d35e645fbed90a49fa69784aec;hpb=7b03ca83ca6c48b9f8c3f77c13760e7f87e9632d;p=libs%2Fgl.git diff --git a/tests/glsl/parentheses.glsl b/tests/glsl/parentheses.glsl index 24635017..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; } */ @@ -58,7 +61,7 @@ struct LightParams }; layout(location=5) uniform LightParams light; layout(location=9) uniform vec3 material_color; -layout(location=10) uniform sampler2D occlusion_map; +layout(location=10, binding=83) uniform sampler2D occlusion_map; layout(location=0) out vec4 frag_color; layout(location=1) in vec2 _vs_out_texcoord; layout(location=0) in vec3 _vs_out_normal;