VertexShaderManager: Compute stereoscopy projection matrices.

This commit is contained in:
Jules Blok
2014-10-26 19:17:00 +01:00
parent c64486075d
commit f6ea293027
10 changed files with 52 additions and 8 deletions

View File

@ -351,6 +351,13 @@ void Matrix44::Translate(Matrix44 &mtx, const float vec[3])
mtx.data[11] = vec[2];
}
void Matrix44::Shear(Matrix44 &mtx, const float a, const float b)
{
LoadIdentity(mtx);
mtx.data[2] = a;
mtx.data[6] = b;
}
void Matrix44::Multiply(const Matrix44 &a, const Matrix44 &b, Matrix44 &result)
{
MatrixMul(4, a.data, b.data, result.data);