From a392de66376beb969b72e5877b28c6052d454637 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Wed, 25 Nov 2020 09:01:36 -0800 Subject: [PATCH] revert pixel ratio chane --- examples/webgl_postprocessing_ssaa.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/webgl_postprocessing_ssaa.html b/examples/webgl_postprocessing_ssaa.html index 66e4e4b626..b5e9d1d555 100644 --- a/examples/webgl_postprocessing_ssaa.html +++ b/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 ); -- GitLab