Skip to content

Commit

Permalink
Examples: webgpu_lights_tiled cleanup (2) (#29722)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Oct 22, 2024
1 parent 6d6c60b commit 86f1431
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/webgpu_lights_tiled.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,11 @@

lighting = new TiledLighting(); // ( maxLights = 1024, tileSize = 32 )

renderer = new THREE.WebGPURenderer( { antialias: true } );
renderer.lighting = lighting; // set lighting system

renderer = new THREE.WebGPURenderer( { antialias: true } );
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
renderer.setAnimationLoop( animate );
renderer.lighting = lighting; // set lighting system
renderer.toneMapping = THREE.NeutralToneMapping;
renderer.toneMappingExposure = 5;
document.body.appendChild( renderer.domElement );
Expand Down

0 comments on commit 86f1431

Please sign in to comment.