effect-motion
API ReferencerendererNamespacesRendererVariables

renderCompTargets

const renderCompTargets: (...args) => Effect<void, ThreeException, never>;

Variable: renderCompTargets

const renderCompTargets: (...args) => Effect<void, ThreeException, never>;

Defined in: packages/renderer/src/Renderer.ts:61

Draw every nested sub-composition into its own render target.

Parameters

ParameterType
...args[Renderer, Sync, number]

Returns

Effect<void, ThreeException, never>

Remarks

Internal, called by both render paths before their main pass. Depth-first, so a comp nested inside another is drawn before its parent samples it, and the previously bound target is always restored — including when a render fails.

Comps render sharp: the child camera's aperture is not applied, and the comp's plane takes the parent's depth of field at its own depth. ponytail: the DoF chain sizes its passes to the drawing buffer and ends in the sRGB output transform, so it can't draw into a comp target; a per-comp chain sized to the target, output transform off, if a precomp needs its own focus.

On this page