diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-10-26 19:17:00 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-11-23 14:23:41 +0100 |
| commit | f6ea293027e553cf89f780ec2a1b716cc026a4b5 (patch) | |
| tree | 7ff15360896c93b727b70dc311fd91530f8e6b19 /Source/Core/Common/MathUtil.cpp | |
| parent | c64486075d728b3682b77ed06d5c154fd4a5c88d (diff) | |
VertexShaderManager: Compute stereoscopy projection matrices.
Diffstat (limited to 'Source/Core/Common/MathUtil.cpp')
| -rw-r--r-- | Source/Core/Common/MathUtil.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/MathUtil.cpp b/Source/Core/Common/MathUtil.cpp index e409e3fe24..05822dac77 100644 --- a/Source/Core/Common/MathUtil.cpp +++ b/Source/Core/Common/MathUtil.cpp @@ -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); |
