mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Improvements to colored shadows (#11516)
This commit is contained in:
parent
21113ad410
commit
982e03f60d
5 changed files with 29 additions and 5 deletions
|
@ -351,7 +351,11 @@ void main(void)
|
|||
vec3 posLightSpace = getLightSpacePosition();
|
||||
|
||||
#ifdef COLORED_SHADOWS
|
||||
vec4 visibility = getShadowColor(ShadowMapSampler, posLightSpace.xy, posLightSpace.z);
|
||||
vec4 visibility;
|
||||
if (cosLight > 0.0)
|
||||
visibility = getShadowColor(ShadowMapSampler, posLightSpace.xy, posLightSpace.z);
|
||||
else
|
||||
visibility = vec4(1.0, 0.0, 0.0, 0.0);
|
||||
shadow_int = visibility.r;
|
||||
shadow_color = visibility.gba;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue