跟我一起學Three.js--3.在場景中添加方塊和球體

1.創建一個立方體(cube) //創建並設置大小 var cubeGeometry = new THREE.BoxGeometry(4,4,4); //設置顏色線框顯示否 var cubeMaterial = new THREE.MeshBasicMaterial({color:0xff0000,wireframe:true}); var cube = new THREE.Mesh(cubeG
相關文章
相關標籤/搜索