diff options
| author | RevoSucks <projectrevotpp@hotmail.com> | 2023-10-30 21:46:11 -0400 |
|---|---|---|
| committer | RevoSucks <projectrevotpp@hotmail.com> | 2023-10-30 21:46:11 -0400 |
| commit | b1d556b1f3d455e019fbf4d80b8bcdb8276c41f2 (patch) | |
| tree | 9de9a4d5ff19bddb58e81918c8cf6d6e81eccf95 /src/code | |
| parent | d02e9a6c6640fda32492621cb1d6243f6adc3e20 (diff) | |
| parent | e0fc8a614f3b5983cf7c03bbe331dd67ddc4463e (diff) | |
Merge branch 'ovl_Boss_Hakugin-goht' of https://github.com/Decompollaborate/mm into zret
Diffstat (limited to 'src/code')
| -rw-r--r-- | src/code/z_sub_s.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/code/z_sub_s.c b/src/code/z_sub_s.c index e630ed150..e1e331beb 100644 --- a/src/code/z_sub_s.c +++ b/src/code/z_sub_s.c @@ -963,7 +963,7 @@ void SubS_FillShadowTex(s32 startCol, s32 startRow, u8* tex, s32 size) { } } -void SubS_GenShadowTex(Vec3f bodyPartsPos[], Vec3f* worldPos, u8* tex, f32 tween, u8 bodyPartsNum, u8 sizes[], +void SubS_GenShadowTex(Vec3f bodyPartsPos[], Vec3f* worldPos, u8* tex, f32 weight, u8 bodyPartsNum, u8 sizes[], s8 parentBodyParts[]) { Vec3f pos; Vec3f startVec; @@ -978,9 +978,9 @@ void SubS_GenShadowTex(Vec3f bodyPartsPos[], Vec3f* worldPos, u8* tex, f32 tween parentBodyPart = parentBodyParts[i]; bodyPartPos = &bodyPartsPos[i]; - pos.x = (bodyPartsPos[parentBodyPart].x - bodyPartPos->x) * tween + (bodyPartPos->x - worldPos->x); - pos.y = (bodyPartsPos[parentBodyPart].y - bodyPartPos->y) * tween + (bodyPartPos->y - worldPos->y); - pos.z = (bodyPartsPos[parentBodyPart].z - bodyPartPos->z) * tween + (bodyPartPos->z - worldPos->z); + pos.x = (bodyPartsPos[parentBodyPart].x - bodyPartPos->x) * weight + (bodyPartPos->x - worldPos->x); + pos.y = (bodyPartsPos[parentBodyPart].y - bodyPartPos->y) * weight + (bodyPartPos->y - worldPos->y); + pos.z = (bodyPartsPos[parentBodyPart].z - bodyPartPos->z) * weight + (bodyPartPos->z - worldPos->z); } else { bodyPartPos = &bodyPartsPos[i]; |
