📄 threejs/Addons/TSL/PixelationPassNode

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


title: PixelationPassNode category: Addons layout: docs

PixelationPassNode

A special render pass node that renders the scene with a pixelation effect.

Import

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

import { pixelationPass } from 'three/addons/tsl/display/PixelationPassNode.js';

Constructor

new PixelationPassNode( scene : Scene, camera : Camera, pixelSize : Node.<float> | number, normalEdgeStrength : Node.<float> | number, depthEdgeStrength : Node.<float> | number )

Constructs a new pixelation pass node.

scene | The scene to render.
---|---
camera | The camera to render the scene with.
pixelSize | The pixel size. Default is 6.
normalEdgeStrength | The normal edge strength. Default is 0.3.
depthEdgeStrength | The depth edge strength. Default is 0.4.

Properties

.depthEdgeStrength : number

The depth edge strength.

Default is 0.4.

.isPixelationPassNode : boolean (readonly)

This flag can be used for type testing.

Default is true.

.normalEdgeStrength : number

The normal edge strength.

Default is 0.3.

.pixelSize : number

The pixel size.

Default is 6.

Methods

.setSize( width : number, height : number )

Sets the size of the pass.

width | The width of the pass.
---|---
height | The height of the pass.

Overrides: PassNode#setSize

.setup( builder : NodeBuilder ) : PixelationNode

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

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

Overrides: PassNode#setup

Source

examples/jsm/tsl/display/PixelationPassNode.js