0.1.1 • Published 2 years ago
vib3 v0.1.1
VIB3 User Guide
Quick setup 🚀
Install VIB3
npm install vib3
Initialize a renderer
const vib3 = Vib3.init()
NOTE: you can pass your own canvas or other parameters:
Vib3.init({ canvas })
Add a camera
vib3.withCameras( camera )
Run the animation loop
vib3.animate()
Add a mesh to the scene
vib3.scene.add( mesh )
Add animations
vib3.addAnimation( (timeS, timeMS) => {
mesh.rotation.x = timeS
mesh.rotation.y = timeS
})
Add fog
vib3.enableFog(0xF2F8F7)
Add scissor view for troubleshooting
vib32
.withCameras( camera )
.withCameraHelpers( new CameraHelper(camera) )
.enableSplitView()