@liaoqinwei/sweep-pass
v0.0.3
Published
threejs scene scanning light.
Downloads
1
Maintainers
Readme
postprocessing plugin for threejs
postprocessing plugin for threejs. The global sweeping plugin is currently implemented.
install
$ npm i @liaoqinwei/sweep-pass
Use
use SweepPass
import { SweepPass } from '@liaoqinwei/sweep-pass'
const sweepPassOptions = {
duration: 10, // sweep duration
thickness: 5, // ring thickness
radius: 20, // ring diffusion radius
color: new THREE.Color().setRGB(1, 0, 0), // color
center: new THREE.Vector3(0, 0, 0)
}
const composer = new EffectComposer(renderer);
composer.addPass(new RenderPass(scene, camera))
const sweepPass = new SweepPass(camera, scene, sweepPassOptions)
composer.addPass(sweepPass)
License
MIT