Skip to content
Snippets Groups Projects
Commit d30fa6c6 authored by amandaghassaei's avatar amandaghassaei
Browse files

small changes

parent 709bcbd1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment