From 8d594b6a541c5ee2ab3ddf9fe870df790d0bb357 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Mon, 21 Sep 2026 20:12:44 +0800 Subject: feat(detail): engineering detail pass on both models + PBR studio pipeline (ACES, env reflections, rim/bounce lights) --- public/App.js | 15 ++++++++++++++- public/index.html | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/App.js b/public/App.js index f63ae7e..eb47dbc 100644 --- a/public/App.js +++ b/public/App.js @@ -306,17 +306,30 @@ export function initializeView() { }); renderer.setPixelRatio(window.devicePixelRatio); renderer.setSize(width, height, false); + renderer.toneMapping = THREE.ACESFilmicToneMapping; + renderer.toneMappingExposure = 1.15; + renderer.outputColorSpace = THREE.SRGBColorSpace; const scene = new THREE.Scene(); scene.background = (new THREE.Color("#11171a")); + const envScene = new THREE.Scene(); + const pmrem = new THREE.PMREMGenerator(renderer); + const envTexture = pmrem.fromScene(envScene, 0.04).texture; + scene.environment = envTexture; + scene.environmentIntensity = 0.55; const camera = new THREE.PerspectiveCamera(34, (width / height), 0.1, 100); camera.position.set(6.4, 4.6, 7.2); camera.lookAt(0, 0, 0); const group = new THREE.Group(); scene.add(group); - scene.add(new THREE.AmbientLight("#f0e6c8", 1.9)); + scene.add(new THREE.AmbientLight("#f0e6c8", 0.55)); const keyLight = new THREE.DirectionalLight("#f2c76b", 2.8); keyLight.position.set(4, 7, 5); scene.add(keyLight); + const rimLight = new THREE.DirectionalLight("#7fa8ff", 1.4); + rimLight.position.set(-6, -3, -4); + scene.add(rimLight); + const bounceLight = new THREE.HemisphereLight("#3d4a56", "#141a1e", 0.9); + scene.add(bounceLight); const controls = new OrbitControls(camera, canvas); controls.target.copy({ x: 0, y: 0, z: 0 }); controls.enableDamping = true; diff --git a/public/index.html b/public/index.html index 63fa727..267d21b 100644 --- a/public/index.html +++ b/public/index.html @@ -179,6 +179,6 @@ heritage 参考线保留占位演示 · F# / OPEN CODE - + -- cgit v1.2.3