0.1.1 • Published 2 years ago

vib3 v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
})

cube

Add fog

vib3.enableFog(0xF2F8F7)

Add scissor view for troubleshooting

vib32
      .withCameras( camera )
      .withCameraHelpers( new CameraHelper(camera) )
      .enableSplitView()

scissor

0.1.1

2 years ago

0.1.0

2 years ago