mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-01 16:11:37 +00:00
Reduce margin a little
This commit is contained in:
parent
6df3b3fbca
commit
818b72fbf5
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ float shadowmapAttenuation(vec4 lightpos, float shadowIndex)
|
|||
else
|
||||
u = dir.x / dir.y * 0.125 + (0.50 + 0.125);
|
||||
}
|
||||
dir -= sign(dir) * 5.0; // margin, to remove wall acne
|
||||
dir -= sign(dir) * 2.0; // margin, to remove wall acne
|
||||
float dist2 = dot(dir, dir);
|
||||
return texture(ShadowMap, vec2(u, v)).x > dist2 ? 1.0 : 0.0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue