Skip to content

First Scene

js
import { Cube } from 'three'
import { createThreeApp } from '@slzr/three-app'

const app = await createThreeApp({
  container: '#container',
  onInit({ scene }) {
    const cube = new Cube()
    scene.add(cube)
  }
})

app.start();