Sfoglia il codice sorgente

Playground: Use devicePixelRatio.

Mr.doob 1 anno fa
parent
commit
5cfc5dba4f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;