Am Freitag, 31. August 2007 17:20 schrieb Stefan Dösinger: Do not apply this patch yet, it breaks half life 2. There's something about the minZ and maxZ values in the viewport that we have to take into account.
Am Freitag, 31. August 2007 18:12 schrieb Stefan Dösinger:
Am Freitag, 31. August 2007 17:20 schrieb Stefan Dösinger: Do not apply this patch yet, it breaks half life 2. There's something about the minZ and maxZ values in the viewport that we have to take into account.
Use the attached patch instead. The problem wasn't the viewport, but the homogenous division which takes place after the vertex shader. So to achive a + 1.0 in homogenous space, we have to add position.w to .z, not 1.0.