Browse Source

revert pixel ratio chane

Garrett Johnson 4 năm trước cách đây
mục cha
commit
a392de6637
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      examples/webgl_postprocessing_ssaa.html

+ 2 - 1
examples/webgl_postprocessing_ssaa.html

@@ -80,9 +80,10 @@
 				const width = window.innerWidth || 1;
 				const height = window.innerHeight || 1;
 				const aspect = width / height;
+				const devicePixelRatio = window.devicePixelRatio || 1;
 
 				renderer = new THREE.WebGLRenderer();
-				renderer.setPixelRatio( 1 ); // ensure pixel ratio is always 1 for performance reasons
+				renderer.setPixelRatio( devicePixelRatio );
 				renderer.setSize( width, height );
 				document.body.appendChild( renderer.domElement );