Search Issue Tracker

Won't Fix

Votes

0

Found in

2018.4

2020.1.0b8

2020.2

Issue ID

1246037

Regression

No

Inconsistent fog between OpenGL and DirectX

Graphics - LowLevel

-

Steps to reproduce:
1. Open the project from the attached file "1246037.zip"
2. Open the SampleScene and inspect the Game View
3. Go to File -> Build and Run
4. Inspect the WebGL build and compare it to the Game View

Expected result: Fog is the same as in the Game View
Actual result: Fog is more further away than in the Game View

Reproducible with: 2018.4.23f1, 2019.4.0f1, 2020.1.0b12, 2020.2.0a14

Note: not reproducible with Mac and Windows builds.

  1. Resolution Note:

    This cannot be fixed for the built in renderer. It was a conscious decision way back when it would cost too much ALU in the shader to make things unified (GL and DX use different clip spaces). Changing it now would change the look of too many projects so we don't dare doing that.
    URP will look into making their fog calculations look the same between backends.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.