diff --git a/examples/webgl_postprocessing_backgrounds.html b/examples/webgl_postprocessing_backgrounds.html index bcaac2b68cb6d3ed35b43ef854ca361b0511c0c8..91fdc506fceaf64300203529893c4e4c85693491 100644 --- a/examples/webgl_postprocessing_backgrounds.html +++ b/examples/webgl_postprocessing_backgrounds.html @@ -241,8 +241,8 @@ renderer.setSize( width, height ); var pixelRatio = renderer.getPixelRatio(); - var newWidth = Math.floor( width / pixelRatio ) || 1; - var newHeight = Math.floor( height / pixelRatio ) || 1; + var newWidth = Math.floor( width * pixelRatio ) || 1; + var newHeight = Math.floor( height * pixelRatio ) || 1; composer.setSize( newWidth, newHeight ); } diff --git a/examples/webgl_postprocessing_ssaa.html b/examples/webgl_postprocessing_ssaa.html index 8388e8975fae4063eff25e5ba7077af02778290a..71f1d2a014bfba01daa2e804477321c3fdfb7ee2 100644 --- a/examples/webgl_postprocessing_ssaa.html +++ b/examples/webgl_postprocessing_ssaa.html @@ -145,8 +145,8 @@ renderer.setSize( width, height ); var pixelRatio = renderer.getPixelRatio(); - var newWidth = Math.floor( width / pixelRatio ) || 1; - var newHeight = Math.floor( height / pixelRatio ) || 1; + var newWidth = Math.floor( width * pixelRatio ) || 1; + var newHeight = Math.floor( height * pixelRatio ) || 1; composer.setSize( newWidth, newHeight ); } diff --git a/examples/webgl_postprocessing_ssaa_unbiased.html b/examples/webgl_postprocessing_ssaa_unbiased.html index 53dbaa4c2f6643826af07630ed3be9b59e38d8b1..aacef40faefb07d70a2bd0c0da81d9622cc146f2 100644 --- a/examples/webgl_postprocessing_ssaa_unbiased.html +++ b/examples/webgl_postprocessing_ssaa_unbiased.html @@ -206,8 +206,8 @@ renderer.setSize( width, height ); var pixelRatio = renderer.getPixelRatio(); - var newWidth = Math.floor( width / pixelRatio ) || 1; - var newHeight = Math.floor( height / pixelRatio ) || 1; + var newWidth = Math.floor( width * pixelRatio ) || 1; + var newHeight = Math.floor( height * pixelRatio ) || 1; composer.setSize( newWidth, newHeight ); } diff --git a/examples/webgl_postprocessing_taa.html b/examples/webgl_postprocessing_taa.html index dd2ca6ec6ed6deeb465b6642a218c74334f42f4e..3aa7d717d8fecd56b09249f77609d742d0c396cd 100644 --- a/examples/webgl_postprocessing_taa.html +++ b/examples/webgl_postprocessing_taa.html @@ -174,8 +174,8 @@ renderer.setSize( width, height ); var pixelRatio = renderer.getPixelRatio(); - var newWidth = Math.floor( width / pixelRatio ) || 1; - var newHeight = Math.floor( height / pixelRatio ) || 1; + var newWidth = Math.floor( width * pixelRatio ) || 1; + var newHeight = Math.floor( height * pixelRatio ) || 1; composer.setSize( newWidth, newHeight ); }