Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Shadowmap Artifacts

Shadowmap Artifacts

VoxycDev
VoxycDev
VoxycDev · · 1 min read
3,502 3

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

Loading comments...