Просмотр исходного кода

Playground: Use devicePixelRatio.

Mr.doob 1 год назад
Родитель
Сommit
5cfc5dba4f
1 измененных файлов с 1 добавлено и 0 удалено
  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;