Search Issue Tracker
By Design
Votes
0
Found in [Package]
7.0.0
Issue ID
1171013
Regression
No
[LWRP] Different rendering order in Scene and Game view when endCameraRendering is used
How to reproduce:
1. Open the attached project named Case_1171013
2. Open the SampleScene
3. Observe the Scene view, notice that the Spheres are behind the wall
4. Open the game view
Expected result: Spheres are rendered behind the wall as in the Scene view
Actual result: Spheres are rendered in front of the wall
Reproducible with: 2019.1.12f1(5.16.1), 2019.2.0b10(6.9.0), 2019.3.0a11(7.0.0)
Could not test with: 2017.4.30f1(No PackageManager), 2018.4.5f1(Some of the SRP methods used in the script were not available)
Package versions tested: 5.7.2, 5.9.0, 5.16.1, 6.5.2, 6.5.3, 6.7.1, 6.9.0, 7.0.0
Possible workaround: Changing camera's MSAA setting from "Use Pipeline Settings" to "Off"
Notes:
1. When 6.9.0 was used spheres would not render in the Game view and Camera Preview(Track_1171013_V1)
2. When 5.7.2 was used spheres would render in Game view and Camera Preview but would have different ordering(Track_1171013_V2)
3. Disabling MSAA in the camera settings seems to fix the issue
4. After MSAA is re-enabled Editor starts throwing "Setting anti-aliasing of already created render texture is not supported!" errors
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note:
This behavior happens because the depth texture for the camera is not available when rendering objects in endCameraRendering. In order to access depth from camera you can inject a render pass in the event AfterRendering.