Skip to content

Commit

Permalink
Merge pull request #414 from open-pv/feature/disable_tonemapping
Browse files Browse the repository at this point in the history
Disable 3rf's default tone mapping
  • Loading branch information
khdlr authored Jan 24, 2025
2 parents 8be86bf + e213a38 commit e4b7d90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ThreeViewer/Meshes/SurroundingMesh.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const SurroundingMesh = ({ geometries }) => {
<mesh key={index} geometry={geometry}>
<meshLambertMaterial
vertexColors={false}
color={0xab9980}
color={0xc4b69f}
side={THREE.DoubleSide}
/>
</mesh>
Expand Down
2 changes: 2 additions & 0 deletions src/components/ThreeViewer/Scene.jsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -70,6 +71,7 @@ const Scene = ({
up: [0, 0, 1],
ref: cameraRef,
}}
gl={{ antialias: true, toneMapping: THREE.NoToneMapping }}
>
<ambientLight intensity={2} />
<directionalLight intensity={1} position={[0, -1, -2]} />
Expand Down

0 comments on commit e4b7d90

Please sign in to comment.