
the light is not reflecting properly, it is cutting. My code:
//criando luz para o jogo
var light = [13]
var ellipse = [13]
// groundLayer.setPipeline('Light2D');
backgrond.setPipeline('Light2D');
//groundLayer.setPipeline('Light2D');
for (let index1 = 1; index1 < 13; index1++) {
light[index1] = this.lights.addLight(index1 * 500, 350, 200).setIntensity(3);
light[index1].angle = -50;
ellipse[index1] = new Phaser.Geom.Ellipse(light[index1].x-100, light[index1].y, 50,50);
this.time.addEvent({
delay: 100,
callback: function () {
Phaser.Geom.Ellipse.Random(ellipse[index1], light[index1]);
},
callbackScope: this,
repeat: -1
});
}
this.lights.enable();[**enter image description here**][1]