Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Neobim

Member Since 12 Jan 2013
Offline Last Active May 19 2013 06:30 PM

Posts I've Made

In Topic: Shadow maps flipped and offset in deferred renderer

16 January 2013 - 04:14 AM

Fixed it. I did have a bias, although it wasn't correct, it wasn't the full cause of the issues. The underlying problem was really, really silly.

 

This line of code...

 

shadowMatrix = shadowViewMatrix * shadowProjectionMatrix;

 

Was reversed, and should have been:

 

shadowMatrix = shadowProjectionMatrix * shadowViewMatrix;

 

I didn't think that would make a difference, but it did.

 

Thanks anyway, I appreciate it!


PARTNERS