update
This commit is contained in:
parent
f83a15cfcc
commit
b7523758e2
@ -1058,8 +1058,8 @@ function createTitleFloor(houseName: string, baseWidth: number, baseLength: numb
|
|||||||
}
|
}
|
||||||
|
|
||||||
//创建地板,可以理解为地基
|
//创建地板,可以理解为地基
|
||||||
function createFloor(houseName: string, baseWidth: number, baseLength: number, position: positionType) {
|
function createFloor(houseName: string, baseWidth: number, baseLength: number, position: positionType, wood:any = requires.wood) {
|
||||||
const texture = new THREE.TextureLoader().load(requires.wood);
|
const texture = new THREE.TextureLoader().load(wood);
|
||||||
//设置地板大小,由于后面将要生成墙体存在设置为1的厚度,因此这里对地板的x,z均-2
|
//设置地板大小,由于后面将要生成墙体存在设置为1的厚度,因此这里对地板的x,z均-2
|
||||||
const floor = new THREE.BoxGeometry(baseWidth - 2, 1, baseLength);
|
const floor = new THREE.BoxGeometry(baseWidth - 2, 1, baseLength);
|
||||||
const material = new THREE.MeshPhongMaterial({ map: texture, transparent: true });
|
const material = new THREE.MeshPhongMaterial({ map: texture, transparent: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user