Search Issue Tracker
Won't Fix
Votes
1
Found in
2021.3.26f1
2022.2.21f1
2023.1.0b18
2023.2.0a16
Issue ID
UUM-36256
Regression
Yes
Linear and Exponential fog is not rendered correctly when one of the GameObjects is too long
Reproduction steps:
1. Open the attached "repro_IN-41043.zip" project
2. Make sure that the project build platform is set to "Android"
3. Set the Fog Mode in the Lighting settings to Linear (as a reference, set Start to 20 and End to 70)
4. Enter the Play Mode
5. Observe the fog
6. Exit the Play Mode
7. Set the Fog Mode in the Lighting settings to Exponential (as a reference, set the density at 0.64)
8. Enter the Play Mode
9. Observe the fog
Expected result: In the Linear mode, the rendered fog position is updating in the perspective of the moving cube (GameObject "Cube (1))"; In the Exponential mode, the ground (GameObject "Cube") is affected by the fog
Actual result: In the Linear mode, the rendered fog position is not updating in the perspective of the moving cube (GameObject "Cube (1))"; In the Exponential mode, the ground (GameObject "Cube") is not affected by the fog
Reproduced with: 2021.2.0b13, 2021.3.26f1, 2022.2.21f1, 2023.1.0b18, 2023.2.0a16
Not reproduced with: 2020.3.48f1, 2021.2.0b12
Reproduced on: Windows 10
Note: Also reproduced in Android builds
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
Won't fix: unfortunately when using such large scale triangles, the geometry extends beyond clipping planes and the vertex attributes are interpolated for clipped vertices. Combined with precision loss when clipping is performed on large scale coordinate differences, the resulting attributes needed for correct fog calculations are not as expected. It is recommended to subdivide such large triangles, not only for this fog issue, but to avoid other pottential shading/lighting issues, that could surface due to differences among GPU precisions.