Skip to content

Commit e43225c

Browse files
authored
WebGPURenderer: Fix tone mapping mode detect (#31957)
* fix tone mapping mode detect * cleanup
1 parent b5eb474 commit e43225c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/renderers/webgpu/WebGPUBackend.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ import WebGPUBindingUtils from './utils/WebGPUBindingUtils.js';
1313
import WebGPUPipelineUtils from './utils/WebGPUPipelineUtils.js';
1414
import WebGPUTextureUtils from './utils/WebGPUTextureUtils.js';
1515

16-
import { WebGPUCoordinateSystem, TimestampQuery, REVISION } from '../../constants.js';
16+
import { WebGPUCoordinateSystem, TimestampQuery, REVISION, HalfFloatType } from '../../constants.js';
1717
import WebGPUTimestampQueryPool from './utils/WebGPUTimestampQueryPool.js';
1818
import { warnOnce, error } from '../../utils.js';
19-
import { ColorManagement } from '../../math/ColorManagement.js';
2019

2120
/**
2221
* A backend implementation targeting WebGPU.
@@ -256,7 +255,7 @@ class WebGPUBackend extends Backend {
256255

257256
const alphaMode = parameters.alpha ? 'premultiplied' : 'opaque';
258257

259-
const toneMappingMode = ColorManagement.getToneMappingMode( this.renderer.outputColorSpace );
258+
const toneMappingMode = this.parameters.outputType === HalfFloatType ? 'extended' : 'standard';
260259

261260
context.configure( {
262261
device: this.device,

0 commit comments

Comments
 (0)