mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Remove projection offset, add the hmd head matrix. Also tidy up a few things.
This commit is contained in:
parent
e7bafe3c7b
commit
f91aa639d6
20 changed files with 126 additions and 113 deletions
|
|
@ -51,6 +51,9 @@ class SceneCameraState
|
|||
/// The inverse of the frustum's transform stored here for caching.
|
||||
MatrixF mWorldViewMatrix;
|
||||
|
||||
/// Actual head position (will be - eye pos)
|
||||
MatrixF mHeadWorldViewMatrix;
|
||||
|
||||
/// The projection matrix.
|
||||
MatrixF mProjectionMatrix;
|
||||
|
||||
|
|
@ -88,6 +91,9 @@ class SceneCameraState
|
|||
/// Return the world-space view vector.
|
||||
const Point3F& getViewDirection() const { return mViewDirection; }
|
||||
|
||||
/// Returns the world->view transform for the head (used to calculate various display metrics)
|
||||
const MatrixF& getHeadWorldViewMatrix() const { return mHeadWorldViewMatrix; }
|
||||
|
||||
/// Return the view->world transform. This is a shortcut for getFrustum().getTransform().
|
||||
const MatrixF& getViewWorldMatrix() const { return mFrustum.getTransform(); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue