From a142f89540101060067bef8725235186b45f66f3 Mon Sep 17 00:00:00 2001 From: Dominique LaSalle Date: Mon, 22 Oct 2018 21:09:34 -0700 Subject: [PATCH] Fix gles3 shader to actually multiply specular light by rev_amount for fog calculations. (cherry picked from commit f39d14dd61b56b86455d11e71ef81b89cc048926) --- drivers/gles3/shaders/scene.glsl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index d3644bffdd4..92309bf66f0 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -2107,10 +2107,9 @@ FRAGMENT_SHADER_CODE emission = emission * rev_amount + fog_color * fog_amount; - ambient_light*=rev_amount; - specular_light*rev_amount; - diffuse_light*=rev_amount; - + ambient_light *= rev_amount; + specular_light *= rev_amount; + diffuse_light *= rev_amount; } #ifdef USE_MULTIPLE_RENDER_TARGETS