mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-15 09:44:09 +00:00
added wrappers around math functions
This commit is contained in:
parent
80e0409d6a
commit
4a36d64f15
31 changed files with 204 additions and 191 deletions
|
@ -299,9 +299,9 @@ CTimeCycle::Update(void)
|
|||
|
||||
float sunAngle = 2*PI*(CClock::GetMinutes() + CClock::GetHours()*60)/(24*60);
|
||||
CVector &sunPos = GetSunPosition();
|
||||
sunPos.x = sinf(sunAngle);
|
||||
sunPos.x = Sin(sunAngle);
|
||||
sunPos.y = 1.0f;
|
||||
sunPos.z = 0.2f - cosf(sunAngle);
|
||||
sunPos.z = 0.2f - Cos(sunAngle);
|
||||
sunPos.Normalise();
|
||||
|
||||
CShadows::CalcPedShadowValues(sunPos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue