Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2017.4.30f1
2018.4.0f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1183527
Regression
No
Depth buffer rendering skybox incorrectly
How to reproduce:
1. Open the attached project
2. Open the "SetMatrixArrayBug.unity" scene
3. Check how Quad is rendered in the Game view
Actual result: Quad is rendered over the cube, but not over the skybox. (screenshot attached)
Expected result: Skybox should always be rendered behind everything else.
Reproducible with: 2017.4.32f1, 2018.4.8f1, 2019.2.5f1, 2019.3.0b3, 2020.1.0a4.
Notes:
- Changing camera "Clear Flags" mode to anything else causes the quad to render correctly.
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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Resolution Note (2019.3.X):
The shader for the skybox indeed has a render queue of 1000.
But, this is not used in the game view window, as described by the documentation here: https://docs.unity3d.com/Manual/SL-SubShaderTags.html
"Queues up to 2500 (“Geometry+500”) are consided “opaque” [...] Skyboxes are drawn in between all opaque and all transparent objects."
Possible solutions to ensure drawing over skybox are:
- use ZWrite On with ZTest Always in the shader
- or specify render queue 2501 or more.