Lighting doesn't work with scaling

So i found the reason my lighting wasn’t working, not sure why but it seems to have an issue with some of the scaling.

when i have my config set like this, the lighting system doesn’t work:

  scale: {
    mode: Phaser.Scale.FIT,
    autoCenter: Phaser.Scale.CENTER_BOTH,
    parent: 'game',
    width: '100%',
    height:  '100%'
  },

however when i set a defined height it does work!

  scale: {
    mode: Phaser.Scale.FIT,
    autoCenter: Phaser.Scale.CENTER_BOTH,
    parent: 'game',
    width: '100%',
    height:  600
  },

not sure if this is working as intended

1 Like