Skip to content

Instantly share code, notes, and snippets.

@patkap1994
Created May 19, 2022 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patkap1994/d2580f4b17861d083eb18c68e31654cd to your computer and use it in GitHub Desktop.
Save patkap1994/d2580f4b17861d083eb18c68e31654cd to your computer and use it in GitHub Desktop.
const geometry = new THREE.BoxGeometry(1, 1, 1)
const material = new THREE.MeshBasicMaterial({ color: 0x781CE5 })
const mesh = new THREE.Mesh(geometry, material)
scene.add(mesh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment