场景跟随浏览器窗口大小自适应
function onWindowResize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
}
window.addEventListener('resize', this.onWindowResize, false);
加上这两句话即可