diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2013-02-18 19:18:50 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:49:53 +0300 |
commit | 227c0b868f970ff44c19e3f06762bc722e046b3f (patch) | |
tree | 132ba98fa72046d4f22698aba14051da2ca172f3 /graphics/coordinates.cpp | |
parent | 63f32ba2b102af8c897755785a3c05f273738423 (diff) |
fixed getOrthoMatrix, depth comparison and depth clear function.
Diffstat (limited to 'graphics/coordinates.cpp')
-rw-r--r-- | graphics/coordinates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/coordinates.cpp b/graphics/coordinates.cpp index c26babb775..4b5aea6a17 100644 --- a/graphics/coordinates.cpp +++ b/graphics/coordinates.cpp @@ -12,7 +12,7 @@ namespace graphics { m(0, 0) = 2 / (r - l); m(0, 1) = 0; m(0, 2) = 0; m(0, 3) = -(r + l) / (r - l); m(1, 0) = 0; m(1, 1) = 2 / (t - b);m(1, 2) = 0; m(1, 3) = -(t + b) / (t - b); - m(2, 0) = 0; m(2, 1) = 0; m(2, 2) = -2 / (f - n); m(2, 3) = - (f + n) / (f - n); + m(2, 0) = 0; m(2, 1) = 0; m(2, 2) = 2 / (f - n); m(2, 3) = - (f + n) / (f - n); m(3, 0) = 0; m(3, 1) = 0; m(3, 2) = 0; m(3, 3) = 1; } } |