2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:47:42 +00:00

Replace angle conversions with zeus implementation

This commit is contained in:
Jack Andersen
2016-04-20 11:50:11 -10:00
parent 9b14f0b381
commit 2260632ac6
2 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ CLight::CLight(ELightType type,
{
case ELightType::Spot:
{
float cosCutoff = std::cos(cutoff * M_PIF / 180.f);
float cosCutoff = std::cos(zeus::degToRad(cutoff));
x30_angleC = 0.f;
x34_angleL = -cosCutoff / (1.0 - cosCutoff);
x38_angleQ = 1.f / (1.0 - cosCutoff);