0.0.3 • Published 1 year ago

@liaoqinwei/sweep-pass v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago