Browse Source

Playground: Use devicePixelRatio.

Mr.doob 1 year ago
parent
commit
5cfc5dba4f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      playground/index.html

+ 1 - 0
playground/index.html

@@ -138,6 +138,7 @@
 
 				renderer = new WebGPURenderer( { antialias: true } );
 				renderer.setAnimationLoop( animate );
+				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.toneMapping = THREE.LinearToneMapping;
 				renderer.toneMappingExposure = 1;