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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.