Commit Graph

29 Commits

Author SHA1 Message Date
Ola Olsson
f044aa8b42 Implemented invalidation of Virtual Shadow Maps for all GPU-Scene updates (Add/Remove/Movement)
- Added LastUpdateSceneFrameNumber to Instance data
- Added GetGPUSceneFrameNumber() to access View.FrameNumber or GPU-Scene specific GPUSceneFrameNumber
- Moved GPUScene class to GPUScene.h
- Moved logic to add/remove instance data to GPU scene to class memebers.
- Added functions in FVirtualShadowMapArrayCacheManagerto invalidate footprints of removed or moved instances before GPU scene update.
- Render to virtual shadow map now invalidates as dynamic the footprint of any cluster that had LastUpdateSceneFrameNumber == GetGPUSceneFrameNumber()

#rb rune.stubbe,andrew.lauritzen
#fyi zach.bethel

[CL 14179043 by Ola Olsson in ue5-main branch]
2020-08-25 10:06:54 -04:00
andrew lauritzen
f56c73960d Various nanite and virtual shadow refactoring:
- Remove virtual shadow cascades path and enable clipmaps instead
- Restore full resolution dense shadow maps even when virtual shadow maps are enabled. Combine dense and virtual shadow maps in the screen space shadow mask during projection.
- Remove "copy to fallback" path for virtual shadows; to be replaced by a separate explicit fallback map or similar. This will break Reverb indirect occlusion with Nanite geometry when virtual shadow maps are on for now. For functional testing, disabling virtual shadow maps will still work.
- Fix a bug with point light shadow projection matrices
- Change VirtualShadowMapId's to "int" since we set them to INDEX_NONE (-1) in a bunch of places

[CL 14156014 by andrew lauritzen in ue5-main branch]
2020-08-20 14:06:29 -04:00
Michal Valient
eb45e7c33a - non unity build fix
- copyright warning fixes
#rb none

[CL 13836227 by Michal Valient in ue5-main branch]
2020-07-07 14:29:30 -04:00
Michal Valient
95d19f95b1 [REVERB] Merging //UE4/Private-Reverb-Development@13832732
#rb graham.wihlidal, rune.stubbe, brian.karis, andrew.lauritzen, jeff.farris

[CL 13834854 by Michal Valient in ue5-main branch]
2020-07-06 18:58:26 -04:00