Explorar o código

Playground: Use devicePixelRatio.

Mr.doob hai 1 ano
pai
achega
5cfc5dba4f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;