mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +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
|
|
@ -48,11 +48,11 @@ SceneRenderState::SceneRenderState( SceneManager* sceneManager,
|
|||
mDisableAdvancedLightingBins( false ),
|
||||
mRenderArea( view.getFrustum().getBounds() ),
|
||||
mAmbientLightColor( sceneManager->getAmbientLightColor() ),
|
||||
mSceneRenderStyle( SRS_Standard ),
|
||||
mRenderField( 0 )
|
||||
mSceneRenderStyle( SRS_Standard )
|
||||
{
|
||||
// Setup the default parameters for the screen metrics methods.
|
||||
mDiffuseCameraTransform = view.getViewWorldMatrix();
|
||||
mDiffuseCameraTransform = view.getHeadWorldViewMatrix();
|
||||
mDiffuseCameraTransform.inverse();
|
||||
|
||||
// The vector eye is the camera vector with its
|
||||
// length normalized to 1 / zFar.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue