Hello!
When I apply the LightsPlugin (using setPipeline('Light2D')
) to a sprite with physics (created using physics.add.sprite()
), it produces an unexpected result: the sprite flickers and its saturation goes way up.
Funny enough, if I enabled debugging (debug: true
), it works fine.
A code snippet that produces the issue:
lights.enable();
lights.setAmbientColor(0x666666);
const hero = this.physics.add.sprite(600, 490, 'hero');
hero.setPipeline('Light2D');
Should sprites with physics work with the LightsPlugin? Or does it work only with static sprites?
If this sounds like an issue, I’ll create a demo and provide more info.
Thank you!
Žiga