sceneDepthLinear property

Texture? get sceneDepthLinear

The linear (view-space) depth buffer: planar view-space depth (world units) in the red channel, with the octahedral-packed view-space normal in green/blue when RenderInput.normals was requested. Non-null when the pass declared RenderInput.depth (or RenderInput.normals) and the camera is perspective; also present when ambient occlusion or reflections ran.

Implementation

gpu.Texture? get sceneDepthLinear =>
    _context.blackboard.get<gpu.Texture>(kLinearDepthBlackboardKey);