improving render quality of 3d model in setup tab

10.3.x-maintenance
skaman82 2015-11-17 13:32:33 +01:00
parent ed005f23bb
commit 0482e6aed8
1 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ TABS.setup.initialize3D = function (compatibility) {
renderer = new THREE.CanvasRenderer({canvas: canvas.get(0), alpha: true}); renderer = new THREE.CanvasRenderer({canvas: canvas.get(0), alpha: true});
} }
// initialize render size for current canvas size // 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 // // 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 // handle canvas resize
this.resize3D = function () { this.resize3D = function () {
renderer.setSize(wrapper.width(), wrapper.height()); renderer.setSize(wrapper.width()*2, wrapper.height()*2);
camera.aspect = wrapper.width() / wrapper.height(); camera.aspect = wrapper.width() / wrapper.height();
camera.updateProjectionMatrix(); camera.updateProjectionMatrix();