Inheritance: EventDispatcher → Node → TempNode → PassNode →
A special render pass node that renders the scene with a pixelation effect.
PixelationPassNode is an addon, and must be imported explicitly, see Installation#Addons.
import { pixelationPass } from 'three/addons/tsl/display/PixelationPassNode.js';
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.
The depth edge strength.
Default is 0.4.
This flag can be used for type testing.
Default is true.
The normal edge strength.
Default is 0.3.
The pixel size.
Default is 6.
Sets the size of the pass.
width
The width of the pass.
height
The height of the pass.
Overrides: PassNode#setSize
This method is used to setup the effect's TSL code.
builder
The current node builder.
Overrides: PassNode#setup