mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fix artifact in PCF filter when the texture coordinate wraps
This commit is contained in:
parent
9cffc29134
commit
8ea74770fd
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ float sampleShadowmapPCF(vec3 planePoint, float v)
|
|||
texelPos -= step_count + 0.5;
|
||||
for (float x = -step_count; x <= step_count; x++)
|
||||
{
|
||||
float u = texelPos / scale;
|
||||
float u = fract(texelPos / scale);
|
||||
vec2 dir = shadowUToDir(u);
|
||||
|
||||
ray.x = dir.x;
|
||||
|
|
Loading…
Reference in a new issue