Browse Source

Playground: Use devicePixelRatio.

Mr.doob 1 năm trước cách đây
mục cha
commit
5cfc5dba4f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;