Can't get linear fog color with PBR while fogmode is Linear

Playground: Babylon.js Playground
If I move ‘#include<fogFragment>(color,finalColor)’ behind ‘#include<pbrBlockImageProcessing>’ in ‘pbr.fragment.js’, and translate fogcolor to gamma space. I will get linear fog color.

This will be fixed in the next nightly Fix fog gamma correction in PBR by sebavan · Pull Request #11242 · BabylonJS/Babylon.js · GitHub

2 Likes