summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-07-14 01:10:05 +0000
committerGitHub <noreply@github.com>2025-07-13 19:10:05 -0600
commit3272edd99f70cb26050ad0d1ddad4a053657886e (patch)
tree3021220520996bc40a804099732737a002b128cd
parent8932048833a8bea213bf6c014e20280f1a57eadf (diff)
Fine-tune the UV for Clouds (#455)
* fine tune cloud uv * format --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
-rw-r--r--src/code_8006E9C0.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/code_8006E9C0.c b/src/code_8006E9C0.c
index 690f44e98..bb1e706df 100644
--- a/src/code_8006E9C0.c
+++ b/src/code_8006E9C0.c
@@ -513,6 +513,24 @@ Vtx cloudvtx[4][4] = { {
{ { { -32, 15, 0 }, 0, { 0, 2032 }, { 255, 255, 255, 255 } } },
} };
+Vtx cloudvtx2[3][4] = { {
+ { { { -32, -16, 0 }, 0, { 0, -32 }, { 255, 255, 255, 255 } } },
+ { { { 31, -16, 0 }, 0, { 4032, -32 }, { 255, 255, 255, 255 } } },
+ { { { 31, 15, 0 }, 0, { 4032, 662 }, { 255, 255, 255, 255 } } },
+ { { { -32, 15, 0 }, 0, { 0, 662 }, { 255, 255, 255, 255 } } },
+ },
+ {
+ { { { -32, -16, 0 }, 0, { 0, 682 }, { 255, 255, 255, 255 } } },
+ { { { 31, -16, 0 }, 0, { 4032, 682 }, { 255, 255, 255, 255 } } },
+ { { { 31, 15, 0 }, 0, { 4032, 1324 }, { 255, 255, 255, 255 } } },
+ { { { -32, 15, 0 }, 0, { 0, 1324 }, { 255, 255, 255, 255 } } },
+ },
+ {
+ { { { -32, -16, 0 }, 0, { 0, 1335 }, { 255, 255, 255, 255 } } },
+ { { { 31, -16, 0 }, 0, { 4032, 1335 }, { 255, 255, 255, 255 } } },
+ { { { 31, 15, 0 }, 0, { 4032, 2027 }, { 255, 255, 255, 255 } } },
+ { { { -32, 15, 0 }, 0, { 0, 2027 }, { 255, 255, 255, 255 } } },
+ } };
void init_cloud_object(s32 objectIndex, s32 arg1, CloudData* arg2) {
ItemWindowObjects* temp_v0;
@@ -528,7 +546,13 @@ void init_cloud_object(s32 objectIndex, s32 arg1, CloudData* arg2) {
func_80073404(objectIndex, 0x40U, 0x20U, D_0D005FB0);
} else {
temp_v0->activeTexture = CM_GetProps()->CloudTexture;
- func_80073404(objectIndex, 0x40U, 0x20U, cloudvtx[arg2->subType]);
+ if (strcmp(CM_GetProps()->CloudTexture, gTextureExhaust0) == 0 ||
+ strcmp(CM_GetProps()->CloudTexture, gTextureExhaust1) == 0 ||
+ strcmp(CM_GetProps()->CloudTexture, gTextureExhaust2) == 0) {
+ func_80073404(objectIndex, 0x40U, 0x20U, cloudvtx2[arg2->subType]);
+ } else {
+ func_80073404(objectIndex, 0x40U, 0x20U, cloudvtx[arg2->subType]);
+ }
}
temp_v0->primAlpha = 0x00FF;
}