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() { void main() {
#ifdef AMBIENT_TEXTURE #ifdef AMBIENT_TEXTURE
const vec3 ambientColor = texture(ambientTexture, interpolatedTextureCoords).xyz; lowp const vec3 ambientColor = texture(ambientTexture, interpolatedTextureCoords).xyz;
#endif #endif
#ifdef DIFFUSE_TEXTURE #ifdef DIFFUSE_TEXTURE
const vec3 diffuseColor = texture(diffuseTexture, interpolatedTextureCoords).xyz; lowp const vec3 diffuseColor = texture(diffuseTexture, interpolatedTextureCoords).xyz;
#endif #endif
#ifdef SPECULAR_TEXTURE #ifdef SPECULAR_TEXTURE
const vec3 specularColor = texture(specularTexture, interpolatedTextureCoords).xyz; lowp const vec3 specularColor = texture(specularTexture, interpolatedTextureCoords).xyz;
#endif #endif
/* Ambient color */ /* Ambient color */

Loading…
Cancel
Save