# FRAMERESOURCE_DEPTH

Variable · category: Graphics

Source: https://github.com/playcanvas/engine/blob/64089771243fe28a9b9d2b4de538b99b07c75097/src/extras/render-passes/constants.js#L75

A frame resource: the depth of the scene, available once the opaque geometry has rendered. List
it in [CameraFrameEffect#requires](https://api.playcanvas.com/engine/classes/CameraFrameEffect.md#requires) to read the depth in the effect's shaders, using the
`getLinearScreenDepth` function of the `screenDepthPS` chunk, which the composition includes for
the effect's compose chunk. The camera frame renders the depth the cheapest way available. Passes
running between the opaque and the transparent geometry read the depth of the opaque geometry.

```ts
const FRAMERESOURCE_DEPTH: string = 'depth'
```
