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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.