Thanks to visit codestin.com
Credit goes to github.com

Skip to content

three.js good vibes without the boilerplates πŸ„πŸ»β€β™€οΈ

License

Notifications You must be signed in to change notification settings

ariapahlavan/vib3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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

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

scissor

About

three.js good vibes without the boilerplates πŸ„πŸ»β€β™€οΈ

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published