Author Topic: Fog Of War - render order?  (Read 2521 times)

darkmecha

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Fog Of War - render order?
« on: March 26, 2014, 02:36:14 PM »
Hi,

Is there any way to make it so that a specific gameobject or texture / material renders above the fog of war?

The way I have FoW setup is each camera has a FOWImage Effect script, my units / buildings have a revealer, and of course the FoW prefab with the FOWSystem script.

Thanks!

 - DM

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fog Of War - render order?
« Reply #1 on: March 26, 2014, 08:25:42 PM »
One of the example scenes that comes with the Fog of War package shows you how you can use FoW by using custom shaders on objects rather than an image effect. Using this approach you can make FoW affect only specific objects, if you desire.