平板改名平面。

This commit is contained in:
liteng 2018-12-17 19:22:38 +08:00
parent 389fc76df8
commit 9889fbaeba
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ GeometryMenu.prototype.render = function () {
xtype: 'hr'
}, {
xtype: 'div',
html: '平',
html: '平',
cls: 'option',
onClick: this.addPlane.bind(this)
}, {

View File

@ -1,12 +1,12 @@
/**
*
*
* @param {*} geometry 几何体
* @param {*} material 材质
*/
function Plane(geometry = new THREE.PlaneBufferGeometry(50, 50), material = new THREE.MeshStandardMaterial()) {
THREE.Mesh.call(this, geometry, material);
this.name = '平';
this.name = '平';
this.rotation.x = -Math.PI / 2;
this.castShadow = true;
this.receiveShadow = true;