diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-11 16:30:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 16:30:51 +0200 |
commit | 636d4bad99db3293cb3b7ac13b7f7e3c69a83296 (patch) | |
tree | 5522d46fd7b03909222924741bb9e70a6152fc8e /servers/rendering/rasterizer_rd/shaders | |
parent | 4bb3f9d4b94f48b503b34886a1b7ffb682b1fbcd (diff) | |
parent | e3a9af2db104d07a7ef35bf09cd129e792e94f4e (diff) |
Merge pull request #37794 from clayjohn/VULKAN-SSS-sky
Fix SSS affecting Sky
Diffstat (limited to 'servers/rendering/rasterizer_rd/shaders')
-rw-r--r-- | servers/rendering/rasterizer_rd/shaders/sky.glsl | 6 |
1 files changed, 6 insertions, 0 deletions
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; + } } |