Browse Source

Shaders: fix compilation of textured Phong shader on OpenGL ES.

pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
2c0e7da5a0
  1. 6
      src/Shaders/Phong.frag

6
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 */

Loading…
Cancel
Save