effect-motion
API ReferencerendererNamespacesSyncFunctions

applyDepthWrite

function applyDepthWrite(material): void;

Function: applyDepthWrite()

function applyDepthWrite(material): void;

Defined in: packages/renderer/src/Sync.ts:1044

Set a layer's depth write from its opacity.

Parameters

ParameterType
materialMaterial

Returns

void

Remarks

Internal. See-through layers (opacity < 1) write no depth, so a fading card never punches holes in what is drawn after it (paint order: syncLayers). They are tagged so a depth-of-field render can lend them depth — see withSeeThroughDepth.

On this page