mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
平板改名平面。
This commit is contained in:
parent
389fc76df8
commit
9889fbaeba
@ -49,7 +49,7 @@ GeometryMenu.prototype.render = function () {
|
||||
xtype: 'hr'
|
||||
}, {
|
||||
xtype: 'div',
|
||||
html: '平板',
|
||||
html: '平面',
|
||||
cls: 'option',
|
||||
onClick: this.addPlane.bind(this)
|
||||
}, {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user