|
@@ -2352,10 +2352,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
if ( cameraDef.type === 'perspective' ) {
|
|
if ( cameraDef.type === 'perspective' ) {
|
|
|
|
|
|
- var aspectRatio = params.aspectRatio || 1;
|
|
|
|
- var xfov = params.yfov * aspectRatio;
|
|
|
|
-
|
|
|
|
- camera = new THREE.PerspectiveCamera( THREE.Math.radToDeg( xfov ), aspectRatio, params.znear || 1, params.zfar || 2e6 );
|
|
|
|
|
|
+ camera = new THREE.PerspectiveCamera( THREE.Math.radToDeg( params.yfov ), params.aspectRatio || 1, params.znear || 1, params.zfar || 2e6 );
|
|
|
|
|
|
} else if ( cameraDef.type === 'orthographic' ) {
|
|
} else if ( cameraDef.type === 'orthographic' ) {
|
|
|
|
|