@petitatelier/three-app
v0.2.1
Published
Defines the ‹three-app› element, a Three.js app container and view, that animates its scenes and cameras
Downloads
1
Readme
‹three-app› element
Three.js app container, that provides animation timing and a registry of cameras and scenes — and synchronizes animation and rendering of the scenes.
Features
- Animates the scenes and cameras — synchronized in the same animation step, running at a desired FPS (if possible);
- Renders the current scene, at the same desired or actual FPS;
- Handles resizing of its bounding box — propagating the change to the aspect ratio to the cameras and renderers.
Incidentally, also imports THREE.js (that was just to say it is used, but all of the elements import it as needed).