Garrett Johnson пре 4 година
родитељ
комит
a392de6637
1 измењених фајлова са 2 додато и 1 уклоњено
  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 );