mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-20 10:22:41 +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
|
else
|
||||||
u = dir.x / dir.y * 0.125 + (0.50 + 0.125);
|
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);
|
float dist2 = dot(dir, dir);
|
||||||
return texture(ShadowMap, vec2(u, v)).x > dist2 ? 1.0 : 0.0;
|
return texture(ShadowMap, vec2(u, v)).x > dist2 ? 1.0 : 0.0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue