Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.2.4f1
2023.1.0a26
2023.2.0a8
Issue ID
UUM-31545
Regression
Yes
The GameObject is not transparent when setting CameraDepthTexture as a depth render target
Reproduction steps:
1. Open the attached project “RenderProject”
2. Open the “Assets/Scenes/SampleScene.unity” scene
3. Observe the “Sphere” GameObject transparency in the Game View
Expected result: Some part of the “Sphere” GameObject is transparent (Invisible cube is drawn to CameraDepthTexture directly)
Actual result: The “Sphere” GameObject is not transparent
Reproducible with: 2022.1.0a16, 2022.2.4f1, 2023.1.0a26, 2023.2.0a8
Not Reproducible with: 2021.3.22f1, 2022.1.0a15
Could not test with: 2020.3.44f1 (“Assets\Scripts\MyRendererFeature.cs(31,74): error CS0246: The type or namespace name 'UniversalRenderer' could not be found (are you missing a using directive or an assembly reference?)”), 2022.2.12f1, 2023.1.0b10(“Assertion failed: UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)”)
Reproducible on: Intel macOS 13.0.1, Windows 10
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
- Palette Settings link to the documentation isn’t working
- Tags & Layers window has inconsistent remove button behaviour between Tags, Sorting Layers, and Rendering Layers when there are no removable items in the list
- "Type Options" and "Node Library" dropdowns do not open when clicked on the title
- Public char variables uneditable in Inspector when project setting "Use IMGUI Default Inspector" is enabled
- IAP Listener component’s list titles go out of bounds when resizing the Inspector window horizontally
Resolution Note:
We currently do not support CameraDepthTexture as an actual render target and everything that should be in there should be rendered before CopyDepthPass.
However, in this case this can be worked around fairly easy by modifying user's shader to use ColorMask R instead of ColorMask 0. The issue happened when we changed depth copy texture to be a R32 color texture, so the shader in this project doesn't write anything as it's not writing to the R channel