- fix artifact in PCF filter when the texture coordinate wraps

This commit is contained in:
Magnus Norddahl 2018-10-05 21:30:16 +02:00
parent 9cffc29134
commit 8ea74770fd
1 changed files with 1 additions and 1 deletions

View File

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