diff options
author | Guilherme Souza <gdsdsilva@inf.ufpel.edu.br> | 2019-04-25 18:29:39 -0300 |
---|---|---|
committer | Guilherme Souza <gdsdsilva@inf.ufpel.edu.br> | 2019-04-25 20:25:05 -0300 |
commit | 61a844aa61861cf2eb5b2721301a4dcc6c4020a4 (patch) | |
tree | d4fe9e99256ba6a006cbfc0d00b6a38c10365e37 /drivers/gles2/shaders/scene.glsl | |
parent | 472c8a7ba1c7090679b6cc2da1abf02f621848e4 (diff) |
Adds flag AMBIENT_LIGHT_DISABLED to GLES2
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
Diffstat (limited to 'drivers/gles2/shaders/scene.glsl')
-rw-r--r-- | drivers/gles2/shaders/scene.glsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl index 7e59b63935..450791d088 100644 --- a/drivers/gles2/shaders/scene.glsl +++ b/drivers/gles2/shaders/scene.glsl @@ -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) |