Skip to content

Commit

Permalink
Disable 3rf's default tone mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
khdlr committed Jan 24, 2025
1 parent 797e42e commit 242484a
Showing 1 changed file with 2 additions and 0 deletions.
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 242484a

Please sign in to comment.