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
1 changed files with 3 additions and 1 deletions

View File

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