🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest CSM Activity
MJP said:
I might have to think this through a little more, but typically you want your “rounding offset” (which snaps the texels of your shadow map to a fixed grid in world space) to be a translation applied to your projection matrix rather than being baked into the X/Y scale factors. Here's how I …
![PCF Filtering doesnt work quite well](https://uploads.gamedev.net/forums/monthly_2020_07/24e6abbcc00d4a05a5dee4d0338d66f0.Untitled-1.jpg)
It's hard to tell just from one screen shot, but based on the code you provided your filtering kernel has a fixed size in shadow map space. The nature of shadow maps is that the effective size of a shadow map texel in screen space completely depends on how the shadow itself ends up getting projecte…
![CSM works fine on AMD GPU not on NVIDIA GPU](https://uploads.gamedev.net/forums/monthly_2020_07/a484305b7bf94654bb794c347d178864.my-csm.jpg)
FYI that sort of issue would get caught by the D3D debug layer, and I definitely recommend enabling it for your debug builds.