Exponential Height Fog Inscattering Color 10x brighter in 5.9
What Type of Bug are you experiencing?
Rendering (Graphics / Niagara)
Steps to Reproduce
Create an exponential height fog and set directional inscattering color to a value in unreal 5.7 or 5.8. Update the project to 5.9 and the inscattering color will be blown out.
Expected Result
The inscattering should not be brighter in the updated project.
I diffed HeightFogCommon.ush between the 5.8 and 5.9 installs and the change is there.
In the branch used when Support Sky Atmosphere Affecting Height Fog is on (it’s on by default) and Support Exponential Fog Matches Volumetric Fog is off, 5.8 did:
UniformPhaseFunction is 1/(4π), so your colour is no longer scaled by it and comes out 4π brighter, about 12.6x. The atmosphere part is unchanged. 5.9 now matches the path without sky atmosphere, which never scaled the colour, so it may be on purpose. Worth Epic confirming either way.
Workaround for now: multiply your Directional Inscattering Color by 0.0796 (that’s 1/(4π)) after the upgrade and it should match 5.8. If you measured exactly 10x and not ~12.6 there may be something else going on too. Projects with Exp Fog Matches Volumetric Fog turned on shouldn’t see a change, that path does the same math in both.