]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/parentheses.glsl
Resolve and validate the parameters of constructors in GLSL
[libs/gl.git] / tests / glsl / parentheses.glsl
index 9899c49ed72aecfcc3f5de72c39f817a2c077880..32651ac97fd60bcd989754431e980aa5c9a6ee11 100644 (file)
@@ -64,6 +64,6 @@ in vec2 _vs_out_texcoord;
 in vec3 _vs_out_normal;
 void main()
 {
-       frag_color = vec4(material_color*(light.ambient+light.color*light.intensity*max(dot(light.dir, normalize(_vs_out_normal)), 0.0))*float(texture(occlusion_map, _vs_out_texcoord)), 1.0);
+       frag_color = vec4(material_color*(light.ambient+light.color*light.intensity*max(dot(light.dir, normalize(_vs_out_normal)), 0.0))*float(texture(occlusion_map, _vs_out_texcoord).x), 1.0);
 }
 */