Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable 3rf's default tone mapping #414

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading