@youyouzone/threejs-mouse-effect
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Threejs-Mouse-Effect

Mouse effect based on Threejs.

Installation

  npm install @youyouzone/threejs-mouse-effect

Usage

import MouseEffect from '@youyouzone/threejs-mouse-effect';

// setup
const mouseEffect = new MouseEffect(scene, canvas, camera, options);

// dispose 
mouseEffect.dispose();

Props:

  • scene: Scene - threejs scene.
  • canvas: HtmlCanvasElement - canvas element.
  • camera: Camera - threejs camera.
  • options?: { isAnimate?: enable animation, default value is true, hoverColor?: set color when hover on a object, default value is 'dodgerblue', }

License

This project is licensed under License: MIT

Contact

Readme

Keywords

Package Sidebar

Install

npm i @youyouzone/threejs-mouse-effect

Weekly Downloads

1

Version

0.0.4

License

none

Unpacked Size

1.35 MB

Total Files

21

Last publish

Collaborators

  • sumnus_eric