Published
- 1 min read
trheejs cube mesh
The solution for this is noted below
trheejs cube mesh
Solution
const geometry = new THREE.BoxGeometry(1, 1, 1)
const material = new THREE.MeshBasicMaterial({ color: 0x00ff00 })
const cube = new THREE.Mesh(geometry, material)
scene.add(cube)
Try other methods by searching on the site. That is if this doesn’t work