1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-14 03:44:34 +00:00

Document some z_actor.c functions (#1091)

This commit is contained in:
hatal175 2022-01-31 11:36:58 +02:00 committed by GitHub
parent 82cedcc3ef
commit aecd883bbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 59 deletions

View file

@ -321,7 +321,7 @@ void Lights_GlowCheck(GlobalContext* globalCtx) {
LightPoint* params;
Vec3f pos;
Vec3f multDest;
f32 wDest;
f32 cappedInvWDest;
f32 wX;
f32 wY;
s32 wZ;
@ -336,13 +336,13 @@ void Lights_GlowCheck(GlobalContext* globalCtx) {
pos.x = params->x;
pos.y = params->y;
pos.z = params->z;
func_8002BE04(globalCtx, &pos, &multDest, &wDest);
Actor_ProjectPos(globalCtx, &pos, &multDest, &cappedInvWDest);
params->drawGlow = false;
wX = multDest.x * wDest;
wY = multDest.y * wDest;
wX = multDest.x * cappedInvWDest;
wY = multDest.y * cappedInvWDest;
if ((multDest.z > 1.0f) && (fabsf(wX) < 1.0f) && (fabsf(wY) < 1.0f)) {
wZ = (s32)((multDest.z * wDest) * 16352.0f) + 16352;
wZ = (s32)((multDest.z * cappedInvWDest) * 16352.0f) + 16352;
zBuf = gZBuffer[(s32)((wY * -120.0f) + 120.0f)][(s32)((wX * 160.0f) + 160.0f)] * 4;
if (1) {}
if (1) {}