From d30fa6c6afbcb7280d7a4d628a05a85de3cc7d8b Mon Sep 17 00:00:00 2001 From: amandaghassaei <amandaghassaei@gmail.com> Date: Tue, 2 May 2017 22:12:22 -0400 Subject: [PATCH] small changes --- js/threeView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/threeView.js b/js/threeView.js index 1b10007..5137a8d 100644 --- a/js/threeView.js +++ b/js/threeView.js @@ -158,6 +158,9 @@ function initThreeView(globals) { renderer.setSize(window.innerWidth, window.innerHeight); + var width = window.innerWidth; + var height = window.innerHeight; + ssaoPass.uniforms[ 'size' ].value.set( width, height ); var pixelRatio = renderer.getPixelRatio(); var newWidth = Math.floor( width / pixelRatio ) || 1; -- GitLab