How to Adapt LightingEngine to a Phaser Plugin?

Hi all.

Recently I found this neat library: GitHub - Jaloko/LightingEngine: A 2D lighting and shadows engine using WebGL and JavaScript.

It pretty much encompasses everything I am trying to do in my own lighting engine, which is currently very slow since it is not shader based like this one.

Does anyone have any pointers on how we could adapt this to a Phaser Plugin or to rewrite it as a custom Pipeline? I have been trying to do so myself, but I am struggling to get things to work properly in a Phaser Pipeline.

You might try Extern.

Ahh interesting, this looks like it could be what I need – thanks! I will give this a try.