mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Added support for Camera Up Direction in SceneLoader
This commit is contained in:
@@ -414,12 +414,17 @@ THREE.SceneLoader.prototype.createScene = function ( json, callbackFinished, url
|
||||
camera = new THREE.OrthographicCamera( c.left, c.right, c.top, c.bottom, c.near, c.far );
|
||||
|
||||
}
|
||||
|
||||
|
||||
p = c.position;
|
||||
t = c.target;
|
||||
u = c.up;
|
||||
camera.position.set( p[0], p[1], p[2] );
|
||||
camera.target = new THREE.Vector3( t[0], t[1], t[2] );
|
||||
|
||||
if ( u ) {
|
||||
|
||||
camera.up.set( u[0], u[1], [2] );
|
||||
}
|
||||
|
||||
result.cameras[ dc ] = camera;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user