Feature: chimney
This commit is contained in:
parent
cc168102b3
commit
caad8a971b
@ -36,7 +36,7 @@ export function createFireplace(x, z, rotY) {
|
|||||||
|
|
||||||
// 2. Fireplace Body
|
// 2. Fireplace Body
|
||||||
const bodyWidth = 2.2;
|
const bodyWidth = 2.2;
|
||||||
const bodyHeight = 2.0;
|
const bodyHeight = 2.2;
|
||||||
const bodyDepth = 0.8;
|
const bodyDepth = 0.8;
|
||||||
const bodyGeo = new THREE.BoxGeometry(bodyWidth, bodyHeight, bodyDepth);
|
const bodyGeo = new THREE.BoxGeometry(bodyWidth, bodyHeight, bodyDepth);
|
||||||
const body = new THREE.Mesh(bodyGeo, stoneMaterial);
|
const body = new THREE.Mesh(bodyGeo, stoneMaterial);
|
||||||
@ -45,6 +45,15 @@ export function createFireplace(x, z, rotY) {
|
|||||||
body.receiveShadow = true;
|
body.receiveShadow = true;
|
||||||
fireplaceGroup.add(body);
|
fireplaceGroup.add(body);
|
||||||
|
|
||||||
|
// Chimney
|
||||||
|
const chimneyGeo = new THREE.BoxGeometry(bodyWidth*0.6, state.roomHeight, bodyDepth*0.6);
|
||||||
|
const chimney = new THREE.Mesh(chimneyGeo, stoneMaterial);
|
||||||
|
chimney.position.z = -bodyDepth*0.2;
|
||||||
|
chimney.position.y = bodyHeight;
|
||||||
|
chimney.castShadow = true;
|
||||||
|
chimney.receiveShadow = true;
|
||||||
|
fireplaceGroup.add(chimney);
|
||||||
|
|
||||||
// 3. Fireplace Opening (carved out look)
|
// 3. Fireplace Opening (carved out look)
|
||||||
const openingWidth = 1.2;
|
const openingWidth = 1.2;
|
||||||
const openingHeight = 1.0;
|
const openingHeight = 1.0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user