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 )
44844484 }
44854485
44864486 CViewSetup shadowView;
4487+ #ifndef MAPBASE
44874488 shadowView.m_flAspectRatio = 1 .0f ;
4489+ #endif
44884490 shadowView.x = shadowView.y = 0 ;
44894491 shadowView.width = shadowDepthTexture->GetActualWidth ();
44904492 shadowView.height = shadowDepthTexture->GetActualHeight ();
44914493#ifndef ASW_PROJECTED_TEXTURES
44924494 shadowView.m_bOrtho = false ;
44934495 shadowView.m_bDoBloomAndToneMapping = false ;
4496+ #ifdef MAPBASE
4497+ shadowView.m_flAspectRatio = (flashlightState.m_fHorizontalFOVDegrees / flashlightState.m_fVerticalFOVDegrees );
4498+ #endif // MAPBASE
44944499#endif
44954500
44964501 // Copy flashlight parameters
44974502#ifdef ASW_PROJECTED_TEXTURES
44984503 if ( !flashlightState.m_bOrtho )
44994504 {
45004505 shadowView.m_bOrtho = false ;
4506+
4507+ #ifdef MAPBASE
4508+ shadowView.m_flAspectRatio = (flashlightState.m_fHorizontalFOVDegrees / flashlightState.m_fVerticalFOVDegrees );
4509+ #endif // MAPBASE
45014510 }
45024511 else
45034512 {
@@ -4506,6 +4515,10 @@ void CClientShadowMgr::ComputeShadowDepthTextures( const CViewSetup &viewSetup )
45064515 shadowView.m_OrthoTop = flashlightState.m_fOrthoTop ;
45074516 shadowView.m_OrthoRight = flashlightState.m_fOrthoRight ;
45084517 shadowView.m_OrthoBottom = flashlightState.m_fOrthoBottom ;
4518+
4519+ #ifdef MAPBASE
4520+ shadowView.m_flAspectRatio = 1 .0f ;
4521+ #endif
45094522 }
45104523
45114524 shadowView.m_bDoBloomAndToneMapping = false ;
You can’t perform that action at this time.
0 commit comments