Depth
Visualizes the scene's depth buffer as grayscale - useful for debugging, or as an input for further custom effects.
import { Depth } from '@react-three/postprocessing'
import { BlendFunction } from 'postprocessing'
return (
<Depth
blendFunction={BlendFunction.SRC} // the blend function of this effect
inverted={false} // whether the depth should be inverted
/>
)
Props
| Name | Type | Default | Description |
|---|---|---|---|
| blendFunction | BlendFunction | BlendFunction.SRC | The blend function of this effect. |
| inverted | Boolean | false | Whether the depth should be inverted. |