Merge pull request #37794 from clayjohn/VULKAN-SSS-sky

Fix SSS affecting Sky
This commit is contained in:
Rémi Verschelde 2020-04-11 16:30:51 +02:00 committed by GitHub
commit 636d4bad99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}