mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
LightsManager.cull
now takes the viewport height from the renderer instead of the game config
This commit is contained in:
parent
507cbf63b5
commit
97f601f378
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ var LightsManager = new Class({
|
|||
var cameraRadius = (camera.width + camera.height) / 2.0;
|
||||
var point = { x: 0, y: 0 };
|
||||
var cameraMatrix = camera.matrix;
|
||||
var viewportHeight = this.systems.game.config.height;
|
||||
var viewportHeight = this.systems.game.renderer.height;
|
||||
|
||||
culledLights.length = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue