Skip to content

Commit ed4a0fe

Browse files
authored
Clean up (#31130)
1 parent ce77197 commit ed4a0fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/webgpu_compute_cloth.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
renderer = new THREE.WebGPURenderer( { antialias: true } );
7070
renderer.setPixelRatio( window.devicePixelRatio );
7171
renderer.setSize( window.innerWidth, window.innerHeight );
72-
renderer.toneMapping = THREE.ACESFilmicToneMapping;
73-
renderer.toneMappingExposure = 1.35;
72+
renderer.toneMapping = THREE.NeutralToneMapping;
73+
renderer.toneMappingExposure = 1;
7474
document.body.appendChild( renderer.domElement );
7575

7676
scene = new THREE.Scene();
@@ -79,10 +79,10 @@
7979
camera.position.set( - 1.6, - 0.1, - 1.6 );
8080

8181
controls = new OrbitControls( camera, renderer.domElement );
82-
83-
controls.target.set( 0, - 0.1, 0 );
8482
controls.minDistance = 1;
8583
controls.maxDistance = 3;
84+
controls.target.set( 0, - 0.1, 0 );
85+
controls.update();
8686

8787
const rgbeLoader = new RGBELoader().setPath( 'textures/equirectangular/' );
8888

@@ -107,7 +107,6 @@
107107
materialFolder.addColor( clothMaterial, 'sheenColor' );
108108

109109
window.addEventListener( 'resize', onWindowResize );
110-
controls.update();
111110

112111
renderer.setAnimationLoop( render );
113112

@@ -453,12 +452,13 @@
453452
geometry.setIndex( indices );
454453

455454
clothMaterial = new THREE.MeshPhysicalNodeMaterial( {
455+
color: 0x204080,
456456
side: THREE.DoubleSide,
457457
transparent: true,
458458
opacity: 0.85,
459459
sheen: 1.0,
460460
sheenRoughness: 0.5,
461-
sheenColor: new THREE.Color( 0xffffff ),
461+
sheenColor: 0xffffff
462462
} );
463463

464464
clothMaterial.positionNode = Fn( ( { material } ) => {

0 commit comments

Comments
 (0)