discosultan / penumbra

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

Occluded ShadowType working incorrectly? #32

Open PerhapsQ opened 3 years ago

PerhapsQ commented 3 years ago

Hello.

Perhaps the issue is on my side, but Occluded ShadowType seem to work the same way as Illuminated. occluded Not sure if there is something wrong with my code, ShadowType in Light object seems to be correct.

Edit: just noticed it's in TODO features section in the code? But there is a screen in documentation?

tapsaman commented 1 year ago

Old issue but I was struggling with the same thing. Noticed there was a closed issue that I assume is related to this one that was (kinda) resolved. #16

I've only tested the DesktopGL version where this setting still renders shadows on partially blocked hulls, which I assume is expected and what I have to work around on in my project. kuva

PerhapsQ commented 11 months ago

I sort of moved on with other stuff. Then I ran into this problem again. Went on to check existing issues just to find this issue posted by myself.

Solution above sort of worked, but aside from problem above, it also messes up a lot of my "2.5D light" image So for now I will probably just stick to lights magically illuminating walls behind walls 😅