|
|
@@ -3,7 +3,7 @@ gui.prepare = function() { |
|
|
|
gui.renderer = new THREE.WebGLRenderer({ |
|
|
|
"antialias": true |
|
|
|
}); |
|
|
|
gui.renderer.setSize(window.innerWidth, window.innerHeight); |
|
|
|
gui.renderer.setSize(window.innerWidth, window.innerHeight-5); |
|
|
|
gui.renderer.setClearColor(0xffffff, 1); |
|
|
|
document.querySelector("body").appendChild(gui.renderer.domElement); |
|
|
|
window.addEventListener("resize", gui.onWindowResize, false); |
|
|
@@ -26,7 +26,7 @@ gui.prepare = function() { |
|
|
|
gui.onWindowResize = function(evt) { |
|
|
|
gui.camera.aspect = window.innerWidth / window.innerHeight; |
|
|
|
gui.camera.updateProjectionMatrix(); |
|
|
|
gui.renderer.setSize(window.innerWidth, window.innerHeight); |
|
|
|
gui.renderer.setSize(window.innerWidth, window.innerHeight-5); |
|
|
|
gui.render(); |
|
|
|
}; |
|
|
|
|
|
|
|