3D:: correct shift matrix in stereo mode

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:08 +02:00
1 parent a6d9f8f679
commit 0f98146d20
3 files changed
+16 -2

No files matched your search

+8
View File
@@ -82,6 +82,14 @@ glmatrix scale(ld x, ld y, ld z) {
return tmp;
}
glmatrix tmtogl(const transmatrix& T) {
glmatrix tmp;
for(int i=0; i<4; i++)
for(int j=0; j<4; j++)
tmp[i][j] = T[i][j];
return tmp;
}
glmatrix ortho(ld x, ld y, ld z) {
return scale(1/x, 1/y, 1/z);
}