Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `ShadowCascade` functions for computing splits all attempted to clamp `cascades` to [0,4] (evidently to avoid out-of-bounds access), but used `max`, instead giving a range of [4, x]. For applications using less than 4 cascades, this results in incorrect split locations and lower quality (much more obvious seam between cascades). This change just switches to use `min` to ensure `cascades` is in the range [0,4].
- Loading branch information