Ver código fonte

revert pixel ratio chane

Garrett Johnson 4 anos atrás
pai
commit
a392de6637
1 arquivos alterados com 2 adições e 1 exclusões
  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 );