1
Other Packages / Re: Fog of War in Unity Basic (non pro)
« on: January 26, 2014, 02:15:31 PM »
Okay, it took some figuring out but I have it working. (I want to post what I did when I have some more time)
My game is using the 2D physics engine so I had to change FOWSystem.cs to recognize 2D colliders, and that works. However I think the shaders you gave me sample the fog assuming the height map is along the y axis? And 2D colliders just won't work that way.
I'm looking through the shaders trying to confirm that is my (new) issue or not. It seems reasonable but I don't understand shaders enough to read them yet.
I will also try to send Tasharen my adaptation for 2D FoW when I have it working perfectly because I believe anyone buying this deserves to have that as well.
Thank you, updates to come.
My game is using the 2D physics engine so I had to change FOWSystem.cs to recognize 2D colliders, and that works. However I think the shaders you gave me sample the fog assuming the height map is along the y axis? And 2D colliders just won't work that way.
I'm looking through the shaders trying to confirm that is my (new) issue or not. It seems reasonable but I don't understand shaders enough to read them yet.
I will also try to send Tasharen my adaptation for 2D FoW when I have it working perfectly because I believe anyone buying this deserves to have that as well.
Thank you, updates to come.