discosultan / penumbra

2D lighting with soft shadows for MonoGame
MIT License
315 stars 32 forks source link

Tweak color of unlit areas #23

Open fr0 opened 5 years ago

fr0 commented 5 years ago

First, thanks for this library. It's awesome and it's solved so many problems for me.

Is it possible to have the unlit areas be anything other than black? In my game, I want them to be "foggy", and the spotlight from the player should cut through that fog to reveal the play area. (I'd probably eventually want to render that fog with a shader).

I originally thought that using a non-black AmbientColor would work but that also changes the color of the lit areas, which I don't want.