Incorrect depth values when using "Render Objects" feature
Unity: SRP Foundation
Fixed
6.0.X
2022.3.X
2021.3.X
Won't Fix
6.1.X
the editor of the RenderObject feature always sets cameraOffset.w to 1.
This is added to the current camera position, resulting in a different view matrix. The offset.w needs to be 0.
How to reproduce:
1. Open the attached “IN-80085“ project
2. Open the “RenderObjectDepth” scene
3. Enter Play Mode
4. Open and enable Frame Debugger
5. In the “CopyDepth” pass change “Levels“ at the top of the Frame Debugger to range from ‘0' to '0.1’
6. Observe the “Output“ screen
Expected result: Both cubes are the same color
Actual result: The “CubeRenderObject“ is lighter than the “CubeDefault“ object