Shadowmap Artifacts
There is clearly something wrong with the images below. The shadows are not supposed to be this far away from the surfaces they are cast from. Can I correct this with bias or should I fix the scale? The shadows used to look real, but all this floating point multiplication must have got in the way. Two years ago it looked perfect. What happened with this shadowmap?
https://github.com/dimitrilozovoy/Voxyc/blob/master/engine/ShadowMap.cpp
https://github.com/dimitrilozovoy/Voxyc/blob/master/engine/ShapeRenderer.cpp
Discussion