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