- 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

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;