📜  treejs 立方体网格 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:31.542000             🧑  作者: Mango

代码示例1
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 );