Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4
2019.4.7f1
2020.1
2020.2
Issue ID
1271764
Regression
No
Depth Buffer Offset value is converted to integer in calculations
How to reproduce:
1. Open attached project "depthbuffer.zip"
2. Open "SampleScene" scene
Expected result: Notice that the green cube is rendered on top of the red cube
Actual result: Red cube is rendered on top since it has a lower Depth Buffer Offset value
Reproducible with - 2018.4.28f1, 2019.4.9f1, 2020.1.4f1, 2020.2.0b7
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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (2021.1.X):
Both offset parameters are hardware- and driver-dependent.
On my machine I can see the expected results when using the Factor parameter.