mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
Fix vertex lighting in GLES2, closes #25365
This commit is contained in:
parent
c2bc458dfe
commit
d79c8d7655
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user