Author Topic: Fog of War possible in deferred lighting?  (Read 1846 times)

Velo

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 13
    • View Profile
Fog of War possible in deferred lighting?
« on: May 02, 2014, 11:37:09 AM »
Hi Aren,

Is the fog of war supposed to work correctly using deferred lighting?  Currently when I switch to deferred lighting, it doesn't work correctly (although I do see a fog effect it's just not in the correct place).  I'm not sure if it's supposed to or not, so I just wanted to ask.

If not, is there a way to get it to work correctly with deferred lighting?  It's actually not a huge deal for me if it doesn't work, but it would be a big bonus if it did.

Thank you.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Fog of War possible in deferred lighting?
« Reply #1 on: May 04, 2014, 11:18:25 AM »
Works fine on my end. I just double-tried to check. Switched the project to Deferred Lighting Rendering Path and it work as expected. Same with just changing the Main Camera to Deferred rendering.

Note that if you have multiple cameras in the scene, then you should never use the Project Settings-based approach, and only change the specific camera to use Deferred.