discosultan / penumbra

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

[Feature Request] UWP support? #9

Open SlowRoasted opened 7 years ago

SlowRoasted commented 7 years ago

Nuget reports this package is incompatible with UWP, Monogame supports UWP and it's simply a wrapper for the normal Win32 app. Are there anyspecific limitations in UWP that is making supporting it different from a normal Monogame Windows app?

discosultan commented 7 years ago

I currently don't have time/plans to look at this but I'd encourage you to try creating your own MonoGame UWP game, turn it into a class library and add the source files of Penumbra project.

It should all be fairly straightforward except for the shader effects which are included to the assembly through a Resource.resx file and loaded at runtime using a ResourceContentManager instead of ContentManager. I'm not sure if .resx files work the same way in UWP apps (haven't worked much with UWP).

Nixxs commented 6 years ago

I've made @discosultan's suggested changes in my fork of this project here, if you are still interested in implementing in UWP:

PenumbraUWP Fork Here is a video of how to use it

discosultan commented 6 years ago

@Nixxs That's super cool! Thanks for sharing!

Nixxs commented 6 years ago

No worries, thanks for the great library!

BlizzCrafter commented 6 years ago

@Nixxs Awesome, thank you very much!