@@ -660,23 +660,14 @@ define([
660
660
var endDir = Cartesian3 . clone ( cameraCV . direction , scratch3DToCVEndDir ) ;
661
661
var endUp = Cartesian3 . clone ( cameraCV . up , scratch3DToCVEndUp ) ;
662
662
663
- var startRight = camera . frustum . right ;
664
- var endRight = endPos . z * 0.5 ;
663
+ morphOrthographicToPerspective ( transitioner , 0.0 , cameraCV , complete ) ;
665
664
666
665
function update ( value ) {
667
666
columbusViewMorph ( startPos , endPos , value . time , camera . position ) ;
668
667
columbusViewMorph ( startDir , endDir , value . time , camera . direction ) ;
669
668
columbusViewMorph ( startUp , endUp , value . time , camera . up ) ;
670
669
Cartesian3 . cross ( camera . direction , camera . up , camera . right ) ;
671
670
Cartesian3 . normalize ( camera . right , camera . right ) ;
672
-
673
- var frustum = camera . frustum ;
674
- frustum . right = CesiumMath . lerp ( startRight , endRight , value . time ) ;
675
- frustum . left = - frustum . right ;
676
- frustum . top = frustum . right * ( scene . drawingBufferHeight / scene . drawingBufferWidth ) ;
677
- frustum . bottom = - frustum . top ;
678
-
679
- camera . position . z = 2.0 * scene . mapProjection . ellipsoid . maximumRadius ;
680
671
}
681
672
var tween = scene . tweens . add ( {
682
673
duration : duration ,
0 commit comments