directx-sdk-samples
directx-sdk-samples copied to clipboard
Bug in VarianceShadowsManager::ComputeNearAndFar()
VarianceShadowsManager::ComputeNearAndFar() calculates fFarPlane
incorrectly in certain situations. Manually setting fFarPlane
to a larger value circumvents the issue but defeats the purpose of "AABB/Scene NearFar" FIT_NEARFAR_SCENE_AABB
fitting.
https://github.com/walbourn/directx-sdk-samples/assets/15961472/59dd5e4b-ebf4-4f5c-86de-17100a5999c2