Adds flag AMBIENT_LIGHT_DISABLED to GLES2
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
(cherry picked from commit 61a844aa61
)
This commit is contained in:
parent
ebaa06b2be
commit
f8f66e5b7a
|
@ -1548,6 +1548,11 @@ FRAGMENT_SHADER_CODE
|
||||||
|
|
||||||
#ifdef BASE_PASS
|
#ifdef BASE_PASS
|
||||||
//none
|
//none
|
||||||
|
|
||||||
|
#ifdef AMBIENT_LIGHT_DISABLED
|
||||||
|
ambient_light = vec3(0.0, 0.0, 0.0);
|
||||||
|
#else
|
||||||
|
|
||||||
#ifdef USE_RADIANCE_MAP
|
#ifdef USE_RADIANCE_MAP
|
||||||
|
|
||||||
vec3 ref_vec = reflect(-eye_position, N);
|
vec3 ref_vec = reflect(-eye_position, N);
|
||||||
|
@ -1570,6 +1575,7 @@ FRAGMENT_SHADER_CODE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // AMBIENT_LIGHT_DISABLED
|
||||||
ambient_light *= ambient_energy;
|
ambient_light *= ambient_energy;
|
||||||
|
|
||||||
#if defined(USE_REFLECTION_PROBE1) || defined(USE_REFLECTION_PROBE2)
|
#if defined(USE_REFLECTION_PROBE1) || defined(USE_REFLECTION_PROBE2)
|
||||||
|
|
Loading…
Reference in New Issue