Skip to content

Commit 136e9cf

Browse files
authored
Disable rendering ped dynamic shadows when they sit on bikes if vehicle volumetric shadows are disabled (#2821)
1 parent 1c04346 commit 136e9cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Client/game_sa/CSettingsSA.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ bool CSettingsSA::IsVolumetricShadowsEnabled()
331331
void CSettingsSA::SetVolumetricShadowsEnabled(bool bEnable)
332332
{
333333
m_bVolumetricShadowsEnabled = bEnable;
334+
335+
// Disable rendering ped real time shadows when they sit on bikes
336+
// if vehicle volumetric shadows are disabled because it looks a bit weird
337+
MemPut<BYTE>(0x5E682A + 1, bEnable);
334338
}
335339

336340
void CSettingsSA::SetVolumetricShadowsSuspended(bool bSuspended)

0 commit comments

Comments
 (0)