Dynamic shadows artifacts

Yeah you are right. I tested code a bit and noticed that original and my offset version(-1, 0, 1) was both half texel offsetted. Proper fix was to remove - 0.5f bias and use my offsets.


float2 TexelPos = ShadowPosition * Settings.ShadowBufferSize.xy - 0.5f; // bias to be consistent with texture filtering hardware