bartwronski/CSharpRenderer — pull request #2 by cforfang (2014-06-09 12:34:13+00:00)
Title: Fixed vertical SSAO blur

During the vertical pass, `key` didn't get a valid depth-value because of the `#ifdef`-disabled passthrough above---resulting in the pass being essentially disabled. See http://i.imgur.com/IPme7lD.png (right is with this fix).

The original SAO-paper always does the passthrough (no `#ifdef HORIZONTAL` above), but since you made the change I just updated `unpackKey` instead of removing the `#ifdef`. Doesn't matter either way I think. :)