mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
@@ -1149,7 +1149,7 @@ void C_BaseFlex::SetupWeights( const matrix3x4_t *pBoneToWorld, int nFlexWeightC
|
||||
{
|
||||
// hack in an initialization
|
||||
LinkToGlobalFlexControllers( GetModelPtr() );
|
||||
m_iBlink = AddGlobalFlexController( "UH" );
|
||||
m_iBlink = AddGlobalFlexController( "blink" );
|
||||
|
||||
if ( SetupGlobalWeights( pBoneToWorld, nFlexWeightCount, pFlexWeights, pFlexDelayedWeights ) )
|
||||
{
|
||||
|
||||
@@ -159,7 +159,7 @@ void CGlowOverlay::UpdateSkyGlowObstruction( float zFar, bool bCacheFullSceneSta
|
||||
if ( PixelVisibility_IsAvailable() )
|
||||
{
|
||||
// Trace a ray at the object.
|
||||
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.999f;
|
||||
Vector pos = CurrentViewOrigin() + m_vDirection * zFar * 0.99f; //9f;
|
||||
|
||||
// UNDONE: Can probably do only the pixelvis query in this case if you can figure out where
|
||||
// to put it - or save the position of this trace
|
||||
|
||||
@@ -642,16 +642,17 @@ void CViewRender::SetUpViews()
|
||||
// Initialize view structure with default values
|
||||
float farZ = GetZFar();
|
||||
|
||||
// Set up the mono/middle view.
|
||||
CViewSetup &view = m_View;
|
||||
// Set up the mono/middle view.
|
||||
CViewSetup &view = m_View;
|
||||
|
||||
view.zFar = farZ;
|
||||
view.zFarViewmodel = farZ;
|
||||
// UNDONE: Make this farther out?
|
||||
view.zFar = 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();
|
||||
view.zNearViewmodel = 1;
|
||||
view.fov = default_fov.GetFloat();
|
||||
view.zNear = GetZNear();
|
||||
view.zNearViewmodel = 1;
|
||||
view.fov = default_fov.GetFloat();
|
||||
|
||||
view.m_bOrtho = false;
|
||||
view.m_bViewToProjectionOverride = false;
|
||||
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user