diff --git a/examples/webgl_postprocessing_ssaa.html b/examples/webgl_postprocessing_ssaa.html index 66e4e4b6264a139216e27be7252eebc6b5675884..b5e9d1d55558279fd0d06bcb1154036c5501ee67 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 );