From 2c0e7da5a052484fda7d82cce3db3e09a3f0fe79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 19 Sep 2013 02:16:16 +0200 Subject: [PATCH] Shaders: fix compilation of textured Phong shader on OpenGL ES. --- src/Shaders/Phong.frag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Shaders/Phong.frag b/src/Shaders/Phong.frag index cbd962a34..e9973dfb6 100644 --- a/src/Shaders/Phong.frag +++ b/src/Shaders/Phong.frag @@ -109,13 +109,13 @@ out lowp vec4 color; void main() { #ifdef AMBIENT_TEXTURE - const vec3 ambientColor = texture(ambientTexture, interpolatedTextureCoords).xyz; + lowp const vec3 ambientColor = texture(ambientTexture, interpolatedTextureCoords).xyz; #endif #ifdef DIFFUSE_TEXTURE - const vec3 diffuseColor = texture(diffuseTexture, interpolatedTextureCoords).xyz; + lowp const vec3 diffuseColor = texture(diffuseTexture, interpolatedTextureCoords).xyz; #endif #ifdef SPECULAR_TEXTURE - const vec3 specularColor = texture(specularTexture, interpolatedTextureCoords).xyz; + lowp const vec3 specularColor = texture(specularTexture, interpolatedTextureCoords).xyz; #endif /* Ambient color */