Skip to content

Commit 0819907

Browse files
authored
Examples: Clean up. (#31914)
1 parent 8d43f7a commit 0819907

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

examples/webgpu_tsl_vfx_linkedparticles.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
3636
import WebGPU from 'three/addons/capabilities/WebGPU.js';
3737

38-
import { ExtendedSRGBColorSpace, ExtendedSRGBColorSpaceImpl } from 'three/addons/math/ColorSpaces.js';
39-
40-
THREE.ColorManagement.define( { [ ExtendedSRGBColorSpace ]: ExtendedSRGBColorSpaceImpl } );
41-
4238
let camera, scene, renderer, postProcessing, controls, timer, light;
4339

4440
let updateParticles, spawnParticles; // TSL compute nodes
@@ -94,15 +90,12 @@
9490

9591
// renderer
9692

97-
renderer = new THREE.WebGPURenderer( { antialias: true, outputType: THREE.HalfFloatType } );
93+
renderer = new THREE.WebGPURenderer( { antialias: true } );
9894
renderer.setClearColor( 0x14171a );
9995
renderer.setPixelRatio( window.devicePixelRatio );
10096
renderer.setSize( window.innerWidth, window.innerHeight );
10197
renderer.setAnimationLoop( animate );
102-
103-
renderer.outputColorSpace = ExtendedSRGBColorSpace;
104-
// TODO: Add support for tone mapping #29573
105-
// renderer.toneMapping = THREE.ACESFilmicToneMapping;
98+
renderer.toneMapping = THREE.ACESFilmicToneMapping;
10699
document.body.appendChild( renderer.domElement );
107100

108101
// TSL function

0 commit comments

Comments
 (0)