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