From e3a9af2db104d07a7ef35bf09cd129e792e94f4e Mon Sep 17 00:00:00 2001 From: clayjohn Date: Sat, 11 Apr 2020 01:20:24 -0700 Subject: Fix SSS affecting Sky --- servers/rendering/rasterizer_rd/shaders/sky.glsl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'servers/rendering/rasterizer_rd/shaders') diff --git a/servers/rendering/rasterizer_rd/shaders/sky.glsl b/servers/rendering/rasterizer_rd/shaders/sky.glsl index 469925839a..c6c863ec60 100644 --- a/servers/rendering/rasterizer_rd/shaders/sky.glsl +++ b/servers/rendering/rasterizer_rd/shaders/sky.glsl @@ -178,4 +178,10 @@ FRAGMENT_SHADER_CODE frag_color.rgb = color * params.position_multiplier.w; frag_color.a = alpha; + + // Blending is disabled for Sky, so alpha doesn't blend + // alpha is used for subsurface scattering so make sure it doesn't get applied to Sky + if (!AT_CUBEMAP_PASS && !AT_HALF_RES_PASS && !AT_QUARTER_RES_PASS) { + frag_color.a = 0.0; + } } -- cgit v1.2.3