Fix negative light rendering in global illumination
Negative lights no longer emit positive indirect light.
This affects VoxelGI, SDFGI and LightmapGI.
Testing project: test_light_negative.zip
Preview
All lights have Indirect Energy set to 10, and the yellow light on the left has its Negative property enabled.
VoxelGI
| Before | After (this PR) |
|---|---|
LightmapGI
| Before | After (this PR) |
|---|---|
SDFGI
| Before | After (this PR) |
|---|---|
In the first comparison, why did the white light to the right side of the wall suddenly get so much brighter with the PR?
In the first comparison, why did the white light to the right side of the wall suddenly get so much brighter with the PR?
This appears to be due to different properties being used between screenshots. I've retested the PR on latest master and have updated the VoxelGI screenshots accordingly, brightness is now similar :slightly_smiling_face: