effect-motion
API ReferencethreeNamespacesRendererFunctions

clearDepth

function clearDepth(self): Renderer;

Function: clearDepth()

function clearDepth(self): Renderer;

Defined in: packages/three/src/Renderer.ts:301

Clear the depth buffer.

Parameters

ParameterType
selfRenderer

Returns

Renderer

Remarks

Paired with setAutoClear(false) for an overlay pass: without it, the overlay's geometry would be depth-tested against the world it is meant to sit above and could be hidden by it.

On this page