将摄像机( Camera )的 aspect 属性设置为画布的宽高比,可防止变形:
camera.aspect = canvas.clientWidth / canvas.clientHeight; camera.updateProjectionMatrix();
当渲染器与画布同尺寸时