mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 07:07:42 +00:00
Particle, map and line renderer fixes
This commit is contained in:
@@ -193,10 +193,10 @@ bool CRELifetimePercent::GetValue(int frame, float& valOut) const
|
||||
bool CRESineWave::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
float a, b, c;
|
||||
x4_magnitude->GetValue(frame, a);
|
||||
x8_linearFrame->GetValue(frame, b);
|
||||
xc_constantFrame->GetValue(frame, c);
|
||||
valOut = std::sin(zeus::degToRad(frame * b + c)) * a;
|
||||
x4_frequency->GetValue(frame, a);
|
||||
x8_amplitude->GetValue(frame, b);
|
||||
xc_phase->GetValue(frame, c);
|
||||
valOut = std::sin(zeus::degToRad(frame * a + c)) * b;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user