Browse Source

revert pixel ratio chane

Garrett Johnson 4 years ago
parent
commit
a392de6637
1 changed files with 2 additions and 1 deletions
  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 );