From 69f634ac781d7c53d517de373cd714ba485a3434 Mon Sep 17 00:00:00 2001 From: mightygoat Date: Fri, 14 Apr 2023 14:55:33 +0530 Subject: [PATCH] Fix the grainy sky while using debanding --- drivers/gles3/shaders/sky.glsl | 2 +- servers/rendering/renderer_rd/shaders/environment/sky.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gles3/shaders/sky.glsl b/drivers/gles3/shaders/sky.glsl index 2455ffb8e27..191d873269a 100644 --- a/drivers/gles3/shaders/sky.glsl +++ b/drivers/gles3/shaders/sky.glsl @@ -215,6 +215,6 @@ void main() { frag_color.a = alpha; #ifdef USE_DEBANDING - frag_color.rgb += interleaved_gradient_noise(gl_FragCoord.xy); + frag_color.rgb += interleaved_gradient_noise(gl_FragCoord.xy) * luminance_multiplier; #endif } diff --git a/servers/rendering/renderer_rd/shaders/environment/sky.glsl b/servers/rendering/renderer_rd/shaders/environment/sky.glsl index e8e5de70209..01301e21875 100644 --- a/servers/rendering/renderer_rd/shaders/environment/sky.glsl +++ b/servers/rendering/renderer_rd/shaders/environment/sky.glsl @@ -290,6 +290,6 @@ void main() { } #ifdef USE_DEBANDING - frag_color.rgb += interleaved_gradient_noise(gl_FragCoord.xy); + frag_color.rgb += interleaved_gradient_noise(gl_FragCoord.xy) * params.luminance_multiplier; #endif }