laurenth-personal / lightmap-switching-tool

Tool that allows switching different baked lightmap sets on a unity scene at runtime.
MIT License
657 stars 88 forks source link

Update to add shadowmask support #10

Closed tantzygames closed 6 years ago

tantzygames commented 6 years ago

This hasn't been fully tested, but it works in my scenes with shadowmasks. I haven't tested for scenes without shadowmasks so I'm not sure if my checks will work (I couldn't find a way to access the Shadowmask setting directly).

laurenth-personal commented 6 years ago

Thanks a lot for this, I should definitely look into merging it.

laurenth-personal commented 6 years ago

I've included the code in the improvements branch. It took me a while because I wanted it to include the loading and unloading of the lighting scene, also applying the shadowmask correctly at runtime required a few tweaks.

laurenth-personal commented 6 years ago

shadowmask now in master but done through another branch because of some other changes I wanted to make. Thanks for your contribution 👍

laurenth-personal commented 5 years ago

FYI I mentioned you in the readme file in the "contributions" section because I didn't know how to make you appear in contributors.

tantzygames commented 5 years ago

Thanks, much appreciated!