JSPM

@liaoqinwei/sweep-pass

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q10341F
  • License MIT

threejs scene scanning light.

Package Exports

  • @liaoqinwei/sweep-pass

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