📄 threejs/Addons/TSL/AnaglyphPassNode

File: AnaglyphPassNode.md | Updated: 11/15/2025


title: AnaglyphPassNode category: Addons layout: docs

AnaglyphPassNode

A render pass node that creates an anaglyph effect.

Import

AnaglyphPassNode is an addon, and must be imported explicitly, see Installation#Addons.

import { anaglyphPass } from 'three/addons/tsl/display/AnaglyphPassNode.js';

Constructor

new AnaglyphPassNode( scene : Scene, camera : Camera )

Constructs a new anaglyph pass node.

scene | The scene to render.
---|---
camera | The camera to render the scene with.

Properties

.isAnaglyphPassNode : boolean (readonly)

This flag can be used for type testing.

Default is true.

Methods

.setup( builder : NodeBuilder ) : PassTextureNode

This method is used to setup the effect's TSL code.

builder | The current node builder.
---|---

Overrides: StereoCompositePassNode#setup

Source

examples/jsm/tsl/display/AnaglyphPassNode.js