Prompt specification
Build or customize the Three.js 3D scene "Yanaka shop awning and doorway step" inside the active workspace.
Engineering Constraints:
1. Runtime & Orbit: Use Three.js r160 with OrbitControls (damping enabled) and ACESFilmicToneMapping.
2. Frame Timing: Drive all motion strictly with clock.getDelta() so animation speed is FPS-independent.
3. Viewport Hygiene: Handle window resize cleanly, cap DPR at Math.min(window.devicePixelRatio, 2), and dispose geometries/materials/renderer on unmount.
Scene Metadata:
Scene: Yanaka shop awning and doorway step
Category: Architecture & Cities · Style: Procedural Solid / Shader 3D
License: MIT · Reference: https://three3d.app/scene/yanaka-shop-awning-and-doorway-step-x3037
Scene Description Prompt:
Build a self-contained HTML scene with Three.js from cdnjs featuring a low-poly shopfront fragment from a referenced Yanaka street in Tokyo. Show the shallow frontage, a short awning, a recessed doorway, and the step between the pedestrian surface and the raised shop interior. Place a modest original display board beside the entrance, avoiding copied logos or invented historic inscriptions. The shopfront should occupy a small rectangular base with enough neighboring wall to establish its narrow proportions. Use subdued plaster, wood, and metal materials, and leave a clear walking strip in front. A low oblique camera should reveal both the threshold height and the awning's projection over the street.
Working Three.js Starter (yanaka-shop-awning-and-doorway-step-x3037):
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Yanaka Shopfront Fragment</title>
<style>
:root {
color-scheme: light;
--ink: #302f2b;
--paper: rgba(244, 240, 231, 0.88);
--line: rgba(48, 47, 43, 0.18);
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: #d8d3c8;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
}
#scene {
display: block;
width: 100%;
height: 100%;
cursor: grab;
touch-action: none;
}
#scene.dragging {
cursor: grabbing;
}
.title-card {
position: fixed;
top: 24px;
left: 24px;
max-width: min(360px, calc(100vw - 48px));
padding: 15px 17px 14px;
color: var(--ink);
background: var(--paper);
border: 1px solid var(--line);
border-radius: 3px;
box-shadow: 0 10px 32px rgba(52, 47, 39, 0.09);
backdrop-filter: blur(8px);
pointer-events: none;
}
.eyebrow {
margin: 0 0 5px;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.17em;
text-transform: uppercase;
opacity: 0.62;
}
h1 {
margin: 0;
font-size: clamp(18px, 2vw, 25px);
font-weight: 620;
letter-spacing: -0.025em;
}
.subtitle {
margin: 5px 0 0;
font-size: 12px;
line-height: 1.45;
opacity: 0.68;
}
.controls-hint {
position: fixed;
right: 20px;
bottom: 18px;
padding: 8px 11px;
color: rgba(48, 47, 43, 0.74);
background: rgba(244, 240, 231, 0.78);
border: 1px solid var(--line);
border-radius: 3px;
font-size: 11px;
letter-spacing: 0.02em;
pointer-events: none;
}
@media (max-width: 620px) {
.title-card {
top: 14px;
left: 14px;
}
.controls-hint {
right: 12px;
bottom: 12px;
}
}
</style>
</head>
<body>
<canvas id="scene"></canvas>
<section class="title-card" aria-label="Scene title">
<p class="eyebrow">Yanaka · Low-poly street study</p>
<h1>Shopfront fragment</h1>
<p class="subtitle">
A narrow raised shop, shallow timber awning, recessed entrance, and an open pedestrian strip.
</p>
</section>
<div class="controls-hint">Drag to orbit · Wheel to move closer · Double-click to reset</div>
<script type="module">
import * as THREE from
"https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.module.min.js";
const canvas = document.querySelector("#scene");
const renderer = new THREE.WebGLRenderer({
canvas,
antialias: true,
powerPreference: "high-performance"
});
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.08;
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
const scene = new THREE.Scene();
scene.background = new THREE.Color(0xd8d3c8);
scene.fog = new THREE.Fog(0xd8d3c8, 19, 38);
const camera = new THREE.PerspectiveCamera(
38,
window.innerWidth / window.innerHeight,
0.1,
70
);
const target = new THREE.Vector3(0, 1.18, -0.08);
let azimuth = 0.43;
let elevation = 0.145;
let radius = 11.7;
function updateCamera() {
const aspectBoost = Math.max(1, 1.15 / camera.aspect);
const r = radius * aspectBoost;
camera.position.set(
target.x + r * Math.sin(azimuth) * Math.cos(elevation),
target.y + r * Math.sin(elevation),
target.z + r * Math.cos(azimuth) * Math.cos(elevation)
);
camera.lookAt(target);
}
// Minimal camera controls implemented locally, without addons.
let dragging = false;
let previousX = 0;
let previousY = 0;
canvas.addEventListener("pointerdown", (event) => {
dragging = true;
previousX = event.clientX;
previousY = event.clientY;
canvas.setPointerCapture(event.pointerId);
canvas.classList.add("dragging");
});
canvas.addEventListener("pointermove", (event) => {
if (!dragging) return;
const dx = event.clientX - previousX;
const dy = event.clientY - previousY;
azimuth -= dx * 0.005;
elevation = THREE.MathUtils.clamp(
elevation + dy * 0.0035,
0.065,
0.34
);
previousX = event.clientX;
previousY = event.clientY;
updateCamera();
});
function endDrag(event) {
dragging = false;
canvas.classList.remove("dragging");
if (canvas.hasPointerCapture(event.pointerId)) {
canvas.releasePointerCapture(event.pointerId);
}
}
canvas.addEventListener("pointerup", endDrag);
canvas.addEventListener("pointercancel", endDrag);
canvas.addEventListener(
"wheel",
(event) => {
event.preventDefault();
radius = THREE.MathUtils.clamp(radius + event.deltaY * 0.008, 7.2, 16.5);
updateCamera();
},
{ passive: false }
);
canvas.addEventListener("dblclick", () => {
azimuth = 0.43;
elevation = 0.145;
radius = 11.7;
updateCamera();
});
function onResize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
updateCamera();
}
window.addEventListener("resize", onResize);
const materials = {
plaster: new THREE.MeshStandardMaterial({
color: 0xb8ad9b,
roughness: 0.94,
metalness: 0,
flatShading: true
}),
plasterLight: new THREE.MeshStandardMaterial({
color: 0xc5baa8,
roughness: 0.96,
metalness: 0,
flatShading: true
}),
plasterDark: new THREE.MeshStandardMaterial({
color: 0x776f63,
roughness: 0.97,
flatShading: true
}),
interior: new THREE.MeshStandardMaterial({
color: 0x514d45,
roughness: 0.9,
flatShading: true
}),
wood: new THREE.MeshStandardMaterial({
color: 0x70513b,
roughness: 0.83,
metalness: 0,
flatShading: true
}),
darkWood: new THREE.MeshStandardMaterial({
color: 0x46362c,
roughness: 0.88,
flatShading: true
}),
paleWood: new THREE.MeshStandardMaterial({
color: 0x9a7b59,
roughness: 0.82,
flatShading: true
}),
metal: new THREE.MeshStandardMaterial({
color: 0x444642,
roughness: 0.48,
metalness: 0.72,
flatShading: true
}),
awning: new THREE.MeshStandardMaterial({
color: 0x6e786c,
roughness: 0.93,
metalness: 0,
flatShading: true
}),
stone: new THREE.MeshStandardMaterial({
color: 0xa9a59b,
roughness: 0.96,
flatShading: true
}),
stoneLight: new THREE.MeshStandardMaterial({
color: 0xb5b0a5,
roughness: 0.95,
flatShading: true
}),
stoneDark: new THREE.MeshStandardMaterial({
color: 0x8e8a82,
roughness: 0.98,
flatShading: true
}),
joint: new THREE.MeshStandardMaterial({
color: 0x77746e,
roughness: 1
}),
glass: new THREE.MeshStandardMaterial({
color: 0x75817e,
roughness: 0.28,
metalness: 0.08,
transparent: true,
opacity: 0.52,
depthWrite: false
})
};
function box(name, size, position, material, parent = scene) {
const mesh = new THREE.Mesh(
new THREE.BoxGeometry(size.x, size.y, size.z),
material
);
mesh.name = name;
mesh.position.copy(position);
mesh.castShadow = true;
mesh.receiveShadow = true;
parent.add(mesh);
return mesh;
}
function cylinderBetween(name, start, end, radius, material, parent = scene) {
const direction = new THREE.Vector3().subVectors(end, start);
const length = direction.length();
const mesh = new THREE.Mesh(
new THREE.CylinderGeometry(radius, radius, length, 8, 1, false),
material
);
mesh.name = name;
mesh.position.copy(start).add(end).multiplyScalar(0.5);
mesh.quaternion.setFromUnitVectors(
new THREE.Vector3(0, 1, 0),
direction.normalize()
);
mesh.castShadow = true;
mesh.receiveShadow = true;
parent.add(mesh);
return mesh;
}
// Lighting.
const hemisphere = new THREE.HemisphereLight(0xe7e0d2, 0x77736b, 1.65);
scene.add(hemisphere);
const sun = new THREE.DirectionalLight(0xfff1d7, 3.15);
sun.position.set(-5.5, 8.5, 6.5);
sun.castShadow = true;
sun.shadow.mapSize.set(2048, 2048);
sun.shadow.camera.left = -8;
sun.shadow.camera.right = 8;
sun.shadow.camera.top = 8;
sun.shadow.camera.bottom = -7;
sun.shadow.camera.near = 0.5;
sun.shadow.camera.far = 24;
sun.shadow.bias = -0.00035;
sun.shadow.normalBias = 0.025;
scene.add(sun);
scene.add(sun.target);
const interiorLight = new THREE.PointLight(0xffd6a0, 13, 4.5, 2);
interiorLight.position.set(0.9, 1.65, -0.78);
scene.add(interiorLight);
// Ground and compact rectangular presentation base.
const ground = new THREE.Mesh(
new THREE.PlaneGeometry(80, 80),
new THREE.MeshStandardMaterial({
color: 0xc9c4b9,
roughness: 1
})
);
ground.rotation.x = -Math.PI / 2;
ground.position.y = -0.22;
ground.receiveShadow = true;
scene.add(ground);
box(
"rectangular model base",
new THREE.Vector3(8.6, 0.2, 4.8),
new THREE.Vector3(0, -0.1, 0.5),
materials.stoneDark
);
// Sidewalk paving. The front row remains deliberately uncluttered.
const paverRows = [
{ z: 0.78, depth: 0.76, y: 0.015 },
{ z: 1.77, depth: 1.06, y: 0.017 }
];
paverRows.forEach((row, rowIndex) => {
const widths = [1.72, 1.72, 1.72, 1.72, 1.72];
let x = -4.3;
widths.forEach((width, index) => {
const material = index % 2 === 0
? materials.stoneLight
: materials.stone;
box(
`paver ${rowIndex}-${index}`,
new THREE.Vector3(width - 0.025, 0.035, row.depth - 0.025),
new THREE.Vector3(x + width / 2, row.y, row.z),
material
);
x += width;
});
});
box(
"front curb",
new THREE.Vector3(8.56, 0.13, 0.18),
new THREE.Vector3(0, 0.065, 2.73),
materials.stoneDark
);
// Raised shop platform: upper landing and lower step.
box(
"raised shop platform",
new THREE.Vector3(4.6, 0.28, 1.72),
new THREE.Vector3(0, 0.14, -0.73),
materials.stoneDark
);
box(
"lower entrance step",
new THREE.Vector3(1.5, 0.14, 0.46),
new THREE.Vector3(1.2, 0.07, 0.31),
materials.stoneLight
);
box(
"step nosing",
new THREE.Vector3(1.48, 0.025, 0.055),
new THREE.Vector3(1.2, 0.145, 0.515),
materials.stone
);
box(
"door threshold",
new THREE.Vector3(1.32, 0.045, 0.23),
new THREE.Vector3(1.2, 0.302, 0.015),
materials.darkWood
);
// Shop shell.
box(
"rear interior wall",
new THREE.Vector3(4.58, 3.2, 0.16),
new THREE.Vector3(0, 1.6, -1.58),
materials.interior
);
box(
"left return wall",
new THREE.Vector3(0.14, 3.15, 1.62),
new THREE.Vector3(-2.26, 1.575, -0.77),
materials.plasterDark
);
box(
"right return wall",
new THREE.Vector3(0.14, 3.15, 1.62),
new THREE.Vector3(2.26, 1.575, -0.77),
materials.plasterDark
);
// Front plaster wall built around a window and a recessed doorway.
const facadeZ = -0.11;
box(
"facade left pier",
new THREE.Vector3(0.45, 3.15, 0.22),
new THREE.Vector3(-2.075, 1.575, facadeZ),
materials.plaster
);
box(
"facade window sill wall",
new THREE.Vector3(2.05, 0.44, 0.22),
new THREE.Vector3(-0.825, 0.50, facadeZ),
materials.plaster
);
box(
"facade window header wall",
new THREE.Vector3(2.05, 1.0, 0.22),
new THREE.Vector3(-0.825, 2.65, facadeZ),
materials.plaster
);
box(
"facade narrow center pier",
new THREE.Vector3(0.35, 3.15, 0.22),
new THREE.Vector3(0.375, 1.575, facadeZ),
materials.plaster
);
box(
"facade right pier",
new THREE.Vector3(0.45, 3.15, 0.22),
new THREE.Vector3(2.075, 1.575, facadeZ),
materials.plaster
);
box(
"facade doorway header wall",
new THREE.Vector3(1.30, 0.65, 0.22),
new THREE.Vector3(1.20, 2.825, facadeZ),
materials.plaster
);
box(
"shop facade top cap",
new THREE.Vector3(4.68, 0.08, 0.29),
new THREE.Vector3(0, 3.17, -0.08),
materials.stoneDark
);
// Window frame and recessed glazing.
const windowFrame = [
{ size: [0.09, 1.49, 0.13], pos: [-1.82, 1.42, -0.025] },
{ size: [0.09, 1.49, 0.13], pos: [0.17, 1.42, -0.025] },
{ size: [2.08, 0.10, 0.15], pos: [-0.825, 0.72, -0.015] },
{ size: [2.08, 0.10, 0.15], pos: [-0.825, 2.12, -0.015] },
{ size: [0.065, 1.34, 0.10], pos: [-0.825, 1.42, -0.045] }
];
windowFrame.forEach((part, index) => {
box(
`window frame ${index}`,
new THREE.Vector3(...part.size),
new THREE.Vector3(...part.pos),
materials.wood
);
});
const glass = new THREE.Mesh(
new THREE.PlaneGeometry(1.89, 1.31),
materials.glass
);
glass.position.set(-0.825, 1.42, -0.13);
glass.receiveShadow = true;
scene.add(glass);
// Quiet interior display behind the glass.
box(
"interior display shelf lower",
new THREE.Vector3(1.72, 0.07, 0.32),
new THREE.Vector3(-0.84, 0.87, -0.53),
materials.paleWood
);
box(
"interior display shelf upper",
new THREE.Vector3(1.72, 0.07, 0.32),
new THREE.Vector3(-0.84, 1.42, -0.53),
materials.paleWood
);
const displayObjectMaterial = new THREE.MeshStandardMaterial({
color: 0x8d8779,
roughness: 0.86,
flatShading: true
});
[
[-1.38, 1.02, 0.16],
[-0.91, 1.03, 0.14],
[-0.42, 1.01, 0.17],
[-1.25, 1.58, 0.13],
[-0.68, 1.59, 0.15]
].forEach((position, index) => {
const object = new THREE.Mesh(
index % 2 === 0
? new THREE.CylinderGeometry(0.09, 0.12, 0.23, 7)
: new THREE.BoxGeometry(0.18, 0.22, 0.16),
displayObjectMaterial
);
object.position.set(...position);
object.castShadow = true;
scene.add(object);
});
// Deep doorway reveals emphasize the recess.
box(
"doorway left reveal",
new THREE.Vector3(0.08, 2.22, 0.58),
new THREE.Vector3(0.575, 1.39, -0.29),
materials.darkWood
);
box(
"doorway right reveal",
new THREE.Vector3(0.08, 2.22, 0.58),
new THREE.Vector3(1.825, 1.39, -0.29),
materials.darkWood
);
box(
"doorway soffit",
new THREE.Vector3(1.30, 0.08, 0.58),
new THREE.Vector3(1.20, 2.46, -0.29),
materials.darkWood
);
// Set-back wooden door.
box(
"recessed wooden door",
new THREE.Vector3(1.08, 2.12, 0.075),
new THREE.Vector3(1.20, 1.36, -0.565),
materials.darkWood
);
box(
"door vertical glazed inset",
new THREE.Vector3(0.43, 0.88, 0.022),
new THREE.Vector3(1.20, 1.71, -0.519),
materials.glass
);
[
{ size: [0.055, 2.13, 0.07], pos: [0.655, 1.36, -0.51] },
{ size: [0.055, 2.13, 0.07], pos: [1.745, 1.36, -0.51] },
{ size: [1.145, 0.065, 0.07], pos: [1.20, 2.445, -0.51] },
{ size: [0.86, 0.045, 0.025], pos: [1.20, 1.25, -0.515] }
].forEach((part, index) => {
box(
`door detail ${index}`,
new THREE.Vector3(...part.size),
new THREE.Vector3(...part.pos),
materials.metal
);
});
cylinderBetween(
"door handle",
new THREE.Vector3(1.51, 1.25, -0.43),
new THREE.Vector3(1.51, 1.47, -0.43),
0.018,
materials.metal
);
// Short, shallow timber awning with a muted canvas backing.
const awning = new THREE.Group();
awning.name = "short street awning";
awning.position.set(0, 2.66, 0.43);
awning.rotation.x = 0.16;
scene.add(awning);
box(
"awning canvas backing",
new THREE.Vector3(3.98, 0.045, 0.86),
new THREE.Vector3(0, 0, 0),
materials.awning,
awning
);
for (let i = 0; i < 9; i++) {
const x = -1.88 + i * 0.47;
box(
`awning timber batten ${i}`,
new THREE.Vector3(0.055, 0.035, 0.84),
new THREE.Vector3(x, 0.044, 0),
materials.wood,
awning
);
}
box(
"awning front timber edge",
new THREE.Vector3(4.03, 0.10, 0.085),
new THREE.Vector3(0, -0.025, 0.425),
materials.darkWood,
awning
);
[-1.75, 1.75].forEach((x, index) => {
cylinderBetween(
`awning metal support ${index}`,
new THREE.Vector3(x, 2.42, 0.015),
new THREE.Vector3(x, 2.55, 0.74),
0.022,
materials.metal
);
});
// Neighboring plaster fragments establish the shop's narrow frontage.
box(
"right neighboring wall",
new THREE.Vector3(1.34, 3.54, 0.34),
new THREE.Vector3(2.98, 1.77, -0.17),
materials.plasterLight
);
box(
"right neighbor wall cap",
new THREE.Vector3(1.40, 0.08, 0.39),
new THREE.Vector3(2.98, 3.56, -0.17),
materials.stoneDark
);
box(
"right neighbor base course",
new THREE.Vector3(1.38, 0.20, 0.38),
new THREE.Vector3(2.98, 0.10, -0.17),
materials.stone
);
box(
"left neighboring wall fragment",
new THREE.Vector3(0.92, 3.28, 0.31),
new THREE.Vector3(-2.77, 1.64, -0.155),
materials.plasterDark
);
box(
"left neighbor wall cap",
new THREE.Vector3(0.98, 0.075, 0.36),
new THREE.Vector3(-2.77, 3.30, -0.155),
materials.stoneDark
);
// A restrained metal downpipe on the seam between shop and neighbor.
cylinderBetween(
"metal downpipe",
new THREE.Vector3(2.27, 0.12, 0.045),
new THREE.Vector3(2.27, 3.13, 0.045),
0.038,
materials.metal
);
cylinderBetween(
"downpipe lower elbow",
new THREE.Vector3(2.27, 0.16, 0.045),
new THREE.Vector3(2.41, 0.09, 0.09),
0.038,
materials.metal
);
// Original board texture: contemporary, generic wording and a simple geometric mark.
function makeDisplayTexture() {
const textureCanvas = document.createElement("canvas");
textureCanvas.width = 512;
textureCanvas.height = 640;
const context = textureCanvas.getContext("2d");
context.fillStyle = "#e8e0d1";
context.fillRect(0, 0, 512, 640);
context.strokeStyle = "#514b40";
context.lineWidth = 9;
context.strokeRect(25, 25, 462, 590);
context.fillStyle = "#3f3b34";
context.textAlign = "center";
context.font = "600 49px sans-serif";
context.fillText("TODAY", 256, 126);
context.font = "500 34px sans-serif";
context.fillText("SMALL FINDS", 256, 181);
// Original abstract arrangement of rectangles and circles.
context.strokeStyle = "#756b5a";
context.lineWidth = 7;
context.strokeRect(126, 238, 104, 104);
context.beginPath();
context.arc(310, 290, 53, 0, Math.PI * 2);
context.stroke();
context.beginPath();
context.moveTo(145, 431);
context.lineTo(214, 365);
context.lineTo(283, 431);
context.closePath();
context.stroke();
context.fillStyle = "#756b5a";
context.font = "500 22px sans-serif";
context.fillText("A SIMPLE DAILY SELECTION", 256, 535);
const texture = new THREE.CanvasTexture(textureCanvas);
texture.colorSpace = THREE.SRGBColorSpace;
texture.anisotropy = Math.min(renderer.capabilities.getMaxAnisotropy(), 8);
return texture;
}
const boardMaterial = new THREE.MeshStandardMaterial({
map: makeDisplayTexture(),
roughness: 0.94,
metalness: 0
});
const board = new THREE.Group();
board.name = "modest original display board";
board.position.set(0.22, 0, 0.84);
scene.add(board);
const boardPanel = new THREE.Mesh(
new THREE.PlaneGeometry(0.64, 0.86),
boardMaterial
);
boardPanel.position.set(0, 0.62, 0.025);
boardPanel.castShadow = true;
boardPanel.receiveShadow = true;
board.add(boardPanel);
box(
"board left frame",
new THREE.Vector3(0.045, 0.93, 0.055),
new THREE.Vector3(-0.345, 0.62, 0.035),
materials.darkWood,
board
);
box(
"board right frame",
new THREE.Vector3(0.045, 0.93, 0.055),
new THREE.Vector3(0.345, 0.62, 0.035),
materials.darkWood,
board
);
box(
"board top frame",
new THREE.Vector3(0.73, 0.045, 0.055),
new THREE.Vector3(0, 1.06, 0.035),
materials.darkWood,
board
);
box(
"board bottom frame",
new THREE.Vector3(0.73, 0.045, 0.055),
new THREE.Vector3(0, 0.18, 0.035),
materials.darkWood,
board
);
cylinderBetween(
"board rear support left",
new THREE.Vector3(-0.25, 1.02, 0.015),
new THREE.Vector3(-0.30, 0.05, -0.39),
0.027,
materials.wood,
board
);
cylinderBetween(
"board rear support right",
new THREE.Vector3(0.25, 1.02, 0.015),
new THREE.Vector3(0.30, 0.05, -0.39),
0.027,
materials.wood,
board
);
// Small wall-mounted shop lamp, kept simple and unbranded.
const lampMount = new THREE.Mesh(
new THREE.BoxGeometry(0.16, 0.035, 0.12),
materials.metal
);
lampMount.position.set(2.04, 2.28, 0.09);
lampMount.castShadow = true;
scene.add(lampMount);
const lampShade = new THREE.Mesh(
new THREE.CylinderGeometry(0.11, 0.16, 0.13, 8),
materials.metal
);
lampShade.position.set(2.04, 2.18, 0.19);
lampShade.castShadow = true;
scene.add(lampShade);
const lampGlass = new THREE.Mesh(
new THREE.CylinderGeometry(0.10, 0.10, 0.025, 8),
new THREE.MeshStandardMaterial({
color: 0xf1d8aa,
emissive: 0xd5a860,
emissiveIntensity: 0.55,
roughness: 0.45
})
);
lampGlass.position.set(2.04, 2.105, 0.19);
scene.add(lampGlass);
updateCamera();
renderer.setAnimationLoop(() => {
renderer.render(scene, camera);
});
</script>
</body>
</html>
```