Removed resolution

This commit is contained in:
Richard Davey 2019-01-22 14:46:43 +00:00
parent 5ef7d18ead
commit a7b3c95e30

View file

@ -593,7 +593,8 @@ var CameraManager = new Class({
{
var scene = this.scene;
var cameras = this.cameras;
var resolution = this.systems.game.scale.resolution;
// var resolution = this.systems.game.scale.resolution;
for (var i = 0; i < this.cameras.length; i++)
{
@ -601,7 +602,7 @@ var CameraManager = new Class({
if (camera.visible && camera.alpha > 0)
{
camera.preRender(resolution);
camera.preRender(1);
renderer.render(scene, children, interpolation, camera);
}
@ -640,14 +641,14 @@ var CameraManager = new Class({
* @protected
* @since 3.0.0
*
* @param {number} timestep - The timestep value.
* @param {number} delta - The delta value since the last frame.
* @param {integer} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.
* @param {number} delta - The delta time, in ms, elapsed since the last frame.
*/
update: function (timestep, delta)
update: function (time, delta)
{
for (var i = 0; i < this.cameras.length; i++)
{
this.cameras[i].update(timestep, delta);
this.cameras[i].update(time, delta);
}
},