fixed scene cameras
parent
ae2faff7af
commit
856e972a21
|
@ -52,6 +52,8 @@ GameLib.D3.Scene = function Scene(
|
|||
* @param entities GameLib.D3.Entity.API[]
|
||||
* @param components GameLib.D3.Component.API[]
|
||||
* @param shapes GameLib.D3.Shape.API[]
|
||||
* @param cameras
|
||||
* @param activeCameraIndex
|
||||
* @constructor
|
||||
*/
|
||||
GameLib.D3.Scene.API = function(
|
||||
|
@ -648,9 +650,7 @@ GameLib.D3.Scene.prototype.render = function(
|
|||
deltaTime,
|
||||
renderer
|
||||
) {
|
||||
if(this.sceneCamera) {
|
||||
renderer.render(this.instance, this.sceneCamera);
|
||||
}
|
||||
renderer.render(this.instance, this.cameras[this.activeCameraIndex].instance);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue