A class that creates an parallax barrier effect.
Note that this class can only be used with WebGLRenderer. When using WebGPURenderer, use ParallaxBarrierPassNode.
ParallaxBarrierEffect is an addon, and must be imported explicitly, see Installation#Addons.
import { ParallaxBarrierEffect } from 'three/addons/effects/ParallaxBarrierEffect.js';
Constructs a new parallax barrier effect.
renderer
The renderer.
Frees internal resources. This method should be called when the effect is no longer required.
When using this effect, this method should be called instead of the default WebGLRenderer#render.
scene
The scene to render.
camera
The camera.
Resizes the effect.
width
The width of the effect in logical pixels.
height
The height of the effect in logical pixels.