From 242484a215ea02bd6431eb72d1fac567f43bf55b Mon Sep 17 00:00:00 2001 From: Konrad Heidler Date: Fri, 24 Jan 2025 13:00:19 +0100 Subject: [PATCH 1/2] Disable 3rf's default tone mapping --- src/components/ThreeViewer/Scene.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ThreeViewer/Scene.jsx b/src/components/ThreeViewer/Scene.jsx index 4df22c3e..bf20ccd4 100644 --- a/src/components/ThreeViewer/Scene.jsx +++ b/src/components/ThreeViewer/Scene.jsx @@ -1,5 +1,6 @@ import React, { useRef, useState } from 'react' import { Canvas } from 'react-three-fiber' +import * as THREE from 'three' import CustomMapControl from './Controls/CustomMapControl' import DrawPVControl from './Controls/DrawPVControl' @@ -70,6 +71,7 @@ const Scene = ({ up: [0, 0, 1], ref: cameraRef, }} + gl={{ antialias: true, toneMapping: THREE.NoToneMapping }} > From e213a38de38db23efaec8469191203d21ae60118 Mon Sep 17 00:00:00 2001 From: Konrad Heidler Date: Fri, 24 Jan 2025 15:08:28 +0100 Subject: [PATCH 2/2] Adjust surrounding building colours --- src/components/ThreeViewer/Meshes/SurroundingMesh.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThreeViewer/Meshes/SurroundingMesh.jsx b/src/components/ThreeViewer/Meshes/SurroundingMesh.jsx index d87eaf5e..802bd86e 100644 --- a/src/components/ThreeViewer/Meshes/SurroundingMesh.jsx +++ b/src/components/ThreeViewer/Meshes/SurroundingMesh.jsx @@ -7,7 +7,7 @@ const SurroundingMesh = ({ geometries }) => {