effect-motion
API ReferencethreeNamespacesPostProcessingInterfaces

Pass

A rendered scene, exposed as nodes a shader graph can sample.

Interface: Pass

Defined in: packages/three/src/PostProcessing.ts:50

A rendered scene, exposed as nodes a shader graph can sample.

Remarks

Accessors return TSL nodes typed as unknown — see the module overview on why. Consumers re-declare the minimal node shape they use.

Properties

~three.pass

readonly ~three.pass: PassNode;

Defined in: packages/three/src/PostProcessing.ts:51


cameraFar

readonly cameraFar: unknown;

Defined in: packages/three/src/PostProcessing.ts:69


cameraNear

readonly cameraNear: unknown;

Defined in: packages/three/src/PostProcessing.ts:68

The camera's near and far planes as auto-updating uniforms.

Remarks

Needed to linearize depth at an arbitrary sample point. Pass.getViewZNode only reports depth at the current pixel, so any effect gathering depth from NEIGHBOURING taps has to do the conversion itself. Reaches past three's public surface to get them.


getTextureNode

readonly getTextureNode: (name?) => unknown;

Defined in: packages/three/src/PostProcessing.ts:53

The pass's rendered color, as a node to sample.

Parameters

ParameterType
name?string

Returns

unknown


getViewZNode

readonly getViewZNode: (name?) => unknown;

Defined in: packages/three/src/PostProcessing.ts:58

Per-pixel view-space depth, for effects that need to know how far away something is — fog, or a depth-driven blur.

Parameters

ParameterType
name?string

Returns

unknown

On this page