From df0b5f247559b67c66e0195080bcc25226e7a952 Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 26 Jun 2023 23:50:40 +0200 Subject: [PATCH] ACESFilmicToneMapping --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 9afc8d5..4f4ceec 100644 --- a/app.js +++ b/app.js @@ -793,6 +793,7 @@ const renderer = new THREE.WebGLRenderer({ }) renderer.setSize(window.innerWidth, window.innerHeight) renderer.setClearColor(0x000000, 10) +renderer.toneMapping = THREE.ACESFilmicToneMapping document.body.appendChild(renderer.domElement) const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000) @@ -871,7 +872,7 @@ scene.add(colorFullCylinder) const ambientLight = new THREE.AmbientLight(0xffffff, 2) scene.add(ambientLight) -const directionalLight = new THREE.DirectionalLight(0xffffff, 2) +const directionalLight = new THREE.DirectionalLight(0xffffff, 3) directionalLight.position.set(5, -30, 0) scene.add(directionalLight)