forked from NVIDIA/Q2RTX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use exact number of cluster lights when assembling light lists in inj…
…ect_model_lights() Previously, space was made in the light list offsets that amounted to the maximum number of lights in a cluster, seen over the lifetime of the map. Unfortunately, this affect light sampling after a large spike of dynamic lights in a cluster, possibly resulting in a more 'noisy' appearance - as described in NVIDIA#226. However, the exact number of lights in a cluster was actually already counted and can be used to tightly pack the light lists, avoiding the permant effect on sampling after a spike of dynamic lights.
- Loading branch information
1 parent
04cf1bb
commit f375f8c
Showing
2 changed files
with
17 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters