]> git.tdb.fi Git - libs/gl.git/commitdiff
Refactor projection matrix handling
authorMikko Rasa <tdb@tdb.fi>
Tue, 14 Dec 2021 11:21:25 +0000 (13:21 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 14 Dec 2021 11:28:56 +0000 (13:28 +0200)
Projection matrices in C++ side now always produce a depth range of 0 to
1 for the NDC Z coordinate.  Shaders will convert it to -1 to 1 when
targeting OpenGL.

Incidentally, the AmbientOcclusion effect's shaders were already written
as if the depth range was 0 to 1, so the effect was actually slightly
incorrect before this.


No differences found