Capítulo 452 de 859
A special render pass node that renders the scene with a pixelation effect.
import { pixelationPass } from 'three/addons/tsl/display/PixelationPassNode.js';
Constructor
| Signature |
|---|
| `new PixelationPassNode( scene : Scene, camera : Camera, pixelSize : Node.<float> |
Properties
| Property | Description |
|---|---|
.depthEdgeStrength : number | The depth edge strength. |
.isPixelationPassNode : boolean (readonly) | This flag can be used for type testing. |
.normalEdgeStrength : number | The normal edge strength. |
.pixelSize : number | The pixel size. |
Methods
| Method | Description |
|---|---|
.setSize( width : number, height : number ) | Sets the size of the pass. |
.setup( builder : NodeBuilder ) : PixelationNode | This method is used to setup the effect's TSL code. |