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
-
cainama966
May 20, 2023 07:47
I am happy to read this fabulous website, Kindly check out my website:-
https://github.com/oberoialisha96 -
cainama966
May 20, 2023 07:22
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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
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.