2d dynamic lights in MonoGame?

Hi all!

I’m new to MonoGame and I would like to know if is there any way I can do 2D dynamic lights in MonoGame without any complicated Math and Shader code?

I would like to achieve something like this:

I did find a MonoGame library on GitHub called Penumbra

But according to the page it is no longer developed and it is also Windows only.
Is there something actively developed and cross-platform solution for MonoGame?
Regarding being cross platform I would like something that works on Windows, Linux and Android or at least on Windows and Linux with OpenGL.

I would appreciate any help.

Thanks.

Penumbra is probably the best solution for you. I think it actually works for the OpenGL platforms. Maybe you need some minor tweaks, but I’d definitely give it a try. I don’t know of any other lib for 2D lighting that’s as good as penumbra.

1 Like

Thanks for the reply.
I did try Penumbra and I was able to compile it for OpenGL without any effort. Not sure why the GitHub page saying it is DX only I did also find a UWP port:


Looks promising.

1 Like