|
|
|
|
@ -33,24 +33,6 @@
|
|
|
|
|
#define const |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifdef EXPLICIT_UNIFORM_LOCATION |
|
|
|
|
layout(location = 7) |
|
|
|
|
#endif |
|
|
|
|
uniform lowp vec4 lightColor |
|
|
|
|
#ifndef GL_ES |
|
|
|
|
= vec4(1.0) |
|
|
|
|
#endif |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
#ifdef EXPLICIT_UNIFORM_LOCATION |
|
|
|
|
layout(location = 8) |
|
|
|
|
#endif |
|
|
|
|
uniform mediump float shininess |
|
|
|
|
#ifndef GL_ES |
|
|
|
|
= 80.0 |
|
|
|
|
#endif |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
#ifdef AMBIENT_TEXTURE |
|
|
|
|
#ifdef EXPLICIT_TEXTURE_LAYER |
|
|
|
|
layout(binding = 0) |
|
|
|
|
@ -103,6 +85,24 @@ uniform lowp vec4 specularColor
|
|
|
|
|
#endif |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
#ifdef EXPLICIT_UNIFORM_LOCATION |
|
|
|
|
layout(location = 7) |
|
|
|
|
#endif |
|
|
|
|
uniform lowp vec4 lightColor |
|
|
|
|
#ifndef GL_ES |
|
|
|
|
= vec4(1.0) |
|
|
|
|
#endif |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
#ifdef EXPLICIT_UNIFORM_LOCATION |
|
|
|
|
layout(location = 8) |
|
|
|
|
#endif |
|
|
|
|
uniform mediump float shininess |
|
|
|
|
#ifndef GL_ES |
|
|
|
|
= 80.0 |
|
|
|
|
#endif |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
in mediump vec3 transformedNormal; |
|
|
|
|
in highp vec3 lightDirection; |
|
|
|
|
in highp vec3 cameraDirection; |
|
|
|
|
|