mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-08 01:54:08 +00:00
Shadow/blood fade and scale fix
This commit is contained in:
parent
680fe0f7e6
commit
6496143022
2 changed files with 5 additions and 5 deletions
|
@ -1516,11 +1516,11 @@ CShadows::UpdatePermanentShadows(void)
|
|||
aPermanentShadows[i].m_nType = SHADOWTYPE_NONE;
|
||||
else
|
||||
{
|
||||
if ( timePassed >= (aPermanentShadows[i].m_nLifeTime*(1-(1/4))) )
|
||||
if ( timePassed >= (aPermanentShadows[i].m_nLifeTime * 3 / 4) )
|
||||
{
|
||||
// timePassed == 0 -> 4
|
||||
// timePassed == aPermanentShadows[i].m_nLifeTime -> 0
|
||||
float fMult = 1.0f - (timePassed - (aPermanentShadows[i].m_nLifeTime*(1-(1/4)))) / (aPermanentShadows[i].m_nLifeTime / 4);
|
||||
float fMult = 1.0f - float(timePassed - (aPermanentShadows[i].m_nLifeTime * 3 / 4)) / (aPermanentShadows[i].m_nLifeTime / 4);
|
||||
|
||||
StoreStaticShadow((uint32)&aPermanentShadows[i],
|
||||
aPermanentShadows[i].m_nType,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue