fixed scene cameras

beta.r3js.org
polygonboutique 2016-11-24 12:24:42 +01:00
parent ae2faff7af
commit 856e972a21
1 changed files with 3 additions and 3 deletions

View File

@ -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);
};
/**