File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -4484,20 +4484,29 @@ void CClientShadowMgr::ComputeShadowDepthTextures( const CViewSetup &viewSetup )
4484
4484
}
4485
4485
4486
4486
CViewSetup shadowView;
4487
+ #ifndef MAPBASE
4487
4488
shadowView.m_flAspectRatio = 1 .0f ;
4489
+ #endif
4488
4490
shadowView.x = shadowView.y = 0 ;
4489
4491
shadowView.width = shadowDepthTexture->GetActualWidth ();
4490
4492
shadowView.height = shadowDepthTexture->GetActualHeight ();
4491
4493
#ifndef ASW_PROJECTED_TEXTURES
4492
4494
shadowView.m_bOrtho = false ;
4493
4495
shadowView.m_bDoBloomAndToneMapping = false ;
4496
+ #ifdef MAPBASE
4497
+ shadowView.m_flAspectRatio = (flashlightState.m_fHorizontalFOVDegrees / flashlightState.m_fVerticalFOVDegrees );
4498
+ #endif // MAPBASE
4494
4499
#endif
4495
4500
4496
4501
// Copy flashlight parameters
4497
4502
#ifdef ASW_PROJECTED_TEXTURES
4498
4503
if ( !flashlightState.m_bOrtho )
4499
4504
{
4500
4505
shadowView.m_bOrtho = false ;
4506
+
4507
+ #ifdef MAPBASE
4508
+ shadowView.m_flAspectRatio = (flashlightState.m_fHorizontalFOVDegrees / flashlightState.m_fVerticalFOVDegrees );
4509
+ #endif // MAPBASE
4501
4510
}
4502
4511
else
4503
4512
{
@@ -4506,6 +4515,10 @@ void CClientShadowMgr::ComputeShadowDepthTextures( const CViewSetup &viewSetup )
4506
4515
shadowView.m_OrthoTop = flashlightState.m_fOrthoTop ;
4507
4516
shadowView.m_OrthoRight = flashlightState.m_fOrthoRight ;
4508
4517
shadowView.m_OrthoBottom = flashlightState.m_fOrthoBottom ;
4518
+
4519
+ #ifdef MAPBASE
4520
+ shadowView.m_flAspectRatio = 1 .0f ;
4521
+ #endif
4509
4522
}
4510
4523
4511
4524
shadowView.m_bDoBloomAndToneMapping = false ;
You can’t perform that action at this time.
0 commit comments