Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by threejs.org #
 
PREVIOUS NEXT
Tagged: #sphere
ADD COMMENT
Topic
Name
5+3 =