Reworking the junkmap
This commit is contained in:
@@ -906,6 +906,7 @@ GameState.prototype.updateShadowTexture = function() {
|
|||||||
this.game.camera.width,
|
this.game.camera.width,
|
||||||
this.game.camera.height);
|
this.game.camera.height);
|
||||||
if ( ! light.rect.intersects(r1) ) {
|
if ( ! light.rect.intersects(r1) ) {
|
||||||
|
console.log("Light does not appear on camera");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user