I'm currently working on a dynamic shadow system using depth shadows and deferred shading (light volumes).
The current problem is, that I get shadow acne, meaning theres faulty shadowrings in places, that are completely lit.
Is solved this problem somewhat by putting in a peter-pan offset (I multiply the shadow maps depth by 1.03 in order to get an offset that gets biger with distance) to the depth comaprison in order to get rid of them.
But the current problem is that with shadows with lower resolutions, I still get artifacts and with shadows with higher resolution I get inaccurate shadows, because of the peter-panning.
So is there an algorithm that lets me estimate the required offset considering distance from light and shadow resolution?