Adds flag AMBIENT_LIGHT_DISABLED to GLES2

Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
This commit is contained in:
Guilherme Souza 2019-04-25 18:29:39 -03:00
parent 472c8a7ba1
commit 61a844aa61

View file

@ -1542,6 +1542,11 @@ FRAGMENT_SHADER_CODE
#ifdef BASE_PASS
//none
#ifdef AMBIENT_LIGHT_DISABLED
ambient_light = vec3(0.0, 0.0, 0.0);
#else
#ifdef USE_RADIANCE_MAP
vec3 ref_vec = reflect(-eye_position, N);
@ -1564,6 +1569,7 @@ FRAGMENT_SHADER_CODE
#endif
#endif // AMBIENT_LIGHT_DISABLED
ambient_light *= ambient_energy;
#if defined(USE_REFLECTION_PROBE1) || defined(USE_REFLECTION_PROBE2)