From 0482e6aed8ec97d769e81a4e5f97eec2290e5c1a Mon Sep 17 00:00:00 2001 From: skaman82 Date: Tue, 17 Nov 2015 13:32:33 +0100 Subject: [PATCH] improving render quality of 3d model in setup tab --- tabs/setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabs/setup.js b/tabs/setup.js index 2868454f..6223cd12 100755 --- a/tabs/setup.js +++ b/tabs/setup.js @@ -228,7 +228,7 @@ TABS.setup.initialize3D = function (compatibility) { renderer = new THREE.CanvasRenderer({canvas: canvas.get(0), alpha: true}); } // initialize render size for current canvas size - renderer.setSize(wrapper.width(), wrapper.height()); + renderer.setSize(wrapper.width()*2, wrapper.height()*2); // // modelWrapper adds an extra axis of rotation to avoid gimbal lock with the euler angles @@ -295,7 +295,7 @@ TABS.setup.initialize3D = function (compatibility) { // handle canvas resize this.resize3D = function () { - renderer.setSize(wrapper.width(), wrapper.height()); + renderer.setSize(wrapper.width()*2, wrapper.height()*2); camera.aspect = wrapper.width() / wrapper.height(); camera.updateProjectionMatrix();