|
|
|
@ -645,8 +645,9 @@ void CViewRender::SetUpViews()
@@ -645,8 +645,9 @@ void CViewRender::SetUpViews()
|
|
|
|
|
// Set up the mono/middle view.
|
|
|
|
|
CViewSetup &view = m_View; |
|
|
|
|
|
|
|
|
|
view.zFar = farZ; |
|
|
|
|
view.zFav = farZ; |
|
|
|
|
view.zFarViewmodel = farZ; |
|
|
|
|
|
|
|
|
|
// UNDONE: Make this farther out?
|
|
|
|
|
// closest point of approach seems to be view center to top of crouched box
|
|
|
|
|
view.zNear = GetZNear(); |
|
|
|
@ -736,7 +737,7 @@ void CViewRender::SetUpViews()
@@ -736,7 +737,7 @@ void CViewRender::SetUpViews()
|
|
|
|
|
float flFOVOffset = fDefaultFov - view.fov; |
|
|
|
|
|
|
|
|
|
//Adjust the viewmodel's FOV to move with any FOV offsets on the viewer's end
|
|
|
|
|
view.fovViewmodel = g_pClientMode->GetViewModelFOV() - flFOVOffset; |
|
|
|
|
view.fovViewmodel = fabs( g_pClientMode->GetViewModelFOV() - flFOVOffset ); |
|
|
|
|
|
|
|
|
|
if ( UseVR() ) |
|
|
|
|
{ |
|
|
|
|