Answers for "three.js sphere"

3

three.js sphere

const geometry = new THREE.SphereGeometry(5, 32, 32); // (radius, widthSegments, heightSegments)
const material = new THREE.MeshBasicMaterial( {color: 0xffff00} );
const sphere = new THREE.Mesh(geometry, material);
scene.add(sphere);
Posted by: Guest on February-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language