# FRAMERESOURCE_PREPASSDEPTH

Variable · category: Graphics

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

A frame resource: the depth of the scene, rendered by a prepass before the scene, so that it is
also available to passes running before the scene and while it renders. List it in
[CameraFrameEffect#requires](https://api.playcanvas.com/engine/classes/CameraFrameEffect.md#requires) instead of [FRAMERESOURCE_DEPTH](https://api.playcanvas.com/engine/variables/FRAMERESOURCE_DEPTH.md) when the depth is
needed that early. The prepass renders the opaque geometry an additional time.

```ts
const FRAMERESOURCE_PREPASSDEPTH: string = 'prepassDepth'
```
