1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-21 06:21:16 +00:00

Name the coordinate transformation matrices (#1042)

This commit is contained in:
engineer124 2021-12-01 10:52:16 +11:00 committed by GitHub
parent 669732abbe
commit eabc918817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 165 additions and 157 deletions

View file

@ -102,7 +102,8 @@ static f32 sSpawnSin;
s32 EnWood02_SpawnZoneCheck(EnWood02* this, GlobalContext* globalCtx, Vec3f* pos) {
f32 phi_f12;
SkinMatrix_Vec3fMtxFMultXYZW(&globalCtx->mf_11D60, pos, &this->actor.projectedPos, &this->actor.projectedW);
SkinMatrix_Vec3fMtxFMultXYZW(&globalCtx->viewProjectionMtxF, pos, &this->actor.projectedPos,
&this->actor.projectedW);
phi_f12 = ((this->actor.projectedW == 0.0f) ? 1000.0f : fabsf(1.0f / this->actor.projectedW));