PassNode

Last modified: Jun 30, 2024

Represents a render pass (sometimes called beauty pass) in context of post processing. This pass produces a render for the given scene and camera and can provide multiple outputs via MRT for further processing.

const postProcessing = new RenderPipeline( renderer );

const scenePass = pass( scene, camera );

postProcessing.outputNode = scenePass;
export {}

Constructor

new PassNode(scope, scene, camera, options?)
ParameterTypeDefault Value
scope"color" | "depth"
sceneScene
cameraCamera
options?Object{}

Constructs a new pass node.

AccessorType

Properties

PropertyTypeDefault Value
scope"color" | "depth"
sceneScene
cameraCamera
optionsObject
_pixelRationumber
_widthnumber
_heightnumber
renderTargetRenderTarget
overrideMaterialany
transparentboolean
opaqueboolean
contextNodeany
_contextNodeCachenull | Object
_textures{ [x: string]: Texture; }
_textureNodes{ [x: string]: TextureNode; }
_linearDepthNodesObject
_viewZNodesObject
_previousTextures{ [x: string]: Texture; }
_previousTextureNodes{ [x: string]: TextureNode; }
_cameraNearUniformNode
_cameraFarUniformNode
_mrtany
_layersany
_resolutionScalenumber
_viewportnull | Vector4
_scissornull | Vector4
isPassNodeboolean
MethodType

Extends

TempNode

pass

TSL function for creating a pass node.

ParameterTypeDefault Value
sceneScene
cameraCamera
optionsObject

Returns

PassNode

passTexture

TSL function for creating a pass texture node.

ParameterTypeDefault Value
passPassNode
textureTexture

Returns

PassTextureNode

depthPass

TSL function for creating a depth pass node.

ParameterTypeDefault Value
sceneScene
cameraCamera
optionsObject

Returns

PassNode