This commit is contained in:
hzz 2024-05-21 12:04:28 +08:00
parent f83a15cfcc
commit b7523758e2

View File

@ -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);
//1xz-2 //1xz-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 });