-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parallel LightLoop fixes and improvements (#74)
* Native collection leak fix * IsFromVisibleList improvement Add null guards to HDProcessedVisibleLightsBuilder light count accessor functions. m_ProcessVisibleLightCounts is not allocated until BuildVisibleLightEntities(), but the counts can be queried outside of the lightloop, before build - in particular inside of HDAdditionalLightData::WillRenderShadowMap() (#77) Fixed rejecting of hidden lights in the light list. (#78) dont skip if shadow update mode is on demand (#81) Process both Visible and Dynamic GI lights at the same time (#82) * Process both Visible and Dynamic GI lights at the same time * Removed (unused) directional DGI lights * Removed (unused) LightVolumeType array Consider all offscreen lights when building DGI light data (#86) * Consider all offscreen lights when building DGI light data * Prefilter offscreen lights to only process DGI-enabled ones * Requested changes from PR comments * Improved duplicate DGI light detection * Removed some GC allocations * Keep a list of DGI-enabled lights so we don't have to check every frame * Bugfix: allDGIEnabledLights isn't a superset of cullResults.visibleLights anymore * Keep the list of DGI lights from HDAdditionalLightData sorted so it's even cheaper to find duplicates Handle case when no valid shadow casters overlap a given shadow casting light. If we do not early out unity throws the error: No valid shadow casters (#90) No valid shadow casters error fix (#91) * Fix GetShadowCasterBounds check
- Loading branch information
1 parent
b51f98c
commit 465f3b0
Showing
10 changed files
with
529 additions
and
445 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
Oops, something went wrong.