Skip to content

Commit 97f601f

Browse files
committed
LightsManager.cull now takes the viewport height from the renderer instead of the game config
1 parent 507cbf6 commit 97f601f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/lights/LightsManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ var LightsManager = new Class({
153153
var cameraRadius = (camera.width + camera.height) / 2.0;
154154
var point = { x: 0, y: 0 };
155155
var cameraMatrix = camera.matrix;
156-
var viewportHeight = this.systems.game.config.height;
156+
var viewportHeight = this.systems.game.renderer.height;
157157

158158
culledLights.length = 0;
159159

0 commit comments

Comments
 (0)