Skip to content

Commit

Permalink
CubeCamera: Remove tone mapping related code. (#26435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Jul 15, 2023
1 parent bf97f70 commit 6d1db4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cameras/CubeCamera.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NoToneMapping, WebGLCoordinateSystem, WebGPUCoordinateSystem } from '../constants.js';
import { WebGLCoordinateSystem, WebGPUCoordinateSystem } from '../constants.js';
import { Object3D } from '../core/Object3D.js';
import { PerspectiveCamera } from './PerspectiveCamera.js';

Expand Down Expand Up @@ -126,10 +126,8 @@ class CubeCamera extends Object3D {

const currentRenderTarget = renderer.getRenderTarget();

const currentToneMapping = renderer.toneMapping;
const currentXrEnabled = renderer.xr.enabled;

renderer.toneMapping = NoToneMapping;
renderer.xr.enabled = false;

const generateMipmaps = renderTarget.texture.generateMipmaps;
Expand Down Expand Up @@ -158,7 +156,6 @@ class CubeCamera extends Object3D {

renderer.setRenderTarget( currentRenderTarget );

renderer.toneMapping = currentToneMapping;
renderer.xr.enabled = currentXrEnabled;

renderTarget.texture.needsPMREMUpdate = true;
Expand Down

0 comments on commit 6d1db4a

Please sign in to comment.