LightsManager.cull now takes the viewport height from the renderer instead of the game config

This commit is contained in:
Richard Davey 2020-07-16 17:42:58 +01:00
parent 507cbf63b5
commit 97f601f378

View file

@ -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;