Looooong / Unity-SRP-VXGI

Voxel-based Global Illumination using Unity Scriptable Render Pipeline
MIT License
766 stars 62 forks source link

Fix light injection when throttling cone tracing #43

Closed Looooong closed 4 years ago

Looooong commented 4 years ago

Do not clear light list right after rendering, as throttled cone tracing doesn't voxelize the scene for some other frames, at which light list is not populated. This results in the lights in the scene flickering.

Instead, clear the light list right before adding new lights to the list.