Răsfoiți Sursa

revert pixel ratio chane

Garrett Johnson 4 ani în urmă
părinte
comite
a392de6637
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  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 );