Fix vertex lighting in GLES2, closes #25365

This commit is contained in:
Juan Linietsky 2019-02-23 19:52:18 -03:00
parent c2bc458dfe
commit d79c8d7655

View file

@ -904,6 +904,8 @@ uniform float ambient_energy;
#ifdef USE_LIGHTING #ifdef USE_LIGHTING
uniform highp vec4 shadow_color;
#ifdef USE_VERTEX_LIGHTING #ifdef USE_VERTEX_LIGHTING
//get from vertex //get from vertex
@ -916,7 +918,7 @@ uniform highp vec3 light_direction; //may be used by fog, so leave here
//done in fragment //done in fragment
// general for all lights // general for all lights
uniform highp vec4 light_color; uniform highp vec4 light_color;
uniform highp vec4 shadow_color;
uniform highp float light_specular; uniform highp float light_specular;
// directional // directional