1
Other Packages / Re: Tasharen Fog of War
« on: June 11, 2017, 11:00:15 PM »
Ok I figured out how to get the fog of war "Image Effect" to work again with Unity 5.5 (and perhaps higher versions as well).
For anyone else that might want to know, Unity basically switched (inverted) the Zbuffer value around as of Unity 5.5. So, what I had to do was in the Fog of War shader put in a line of code that is essentially: "depth = 1 - depth" in the part of the shader that contains the definition for the depth variable. This modifies the value to align with the change that Unity made regarding the Zbuffer.
So it works now, and I'm very happy about that.
For anyone else that might want to know, Unity basically switched (inverted) the Zbuffer value around as of Unity 5.5. So, what I had to do was in the Fog of War shader put in a line of code that is essentially: "depth = 1 - depth" in the part of the shader that contains the definition for the depth variable. This modifies the value to align with the change that Unity made regarding the Zbuffer.
So it works now, and I'm very happy about that.