mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-08 05:40:36 -04:00
Match dMCloth_c::lightSet1
This commit is contained in:
@@ -88,8 +88,8 @@ public:
|
||||
/* 0x003c */ f32 field_0x3c;
|
||||
/* 0x0040 */ f32 field_0x40;
|
||||
/* 0x0044 */ f32 field_0x44;
|
||||
/* 0x0048 */ u16 field_0x48;
|
||||
/* 0x004a */ u16 field_0x4a;
|
||||
/* 0x0048 */ s16 field_0x48;
|
||||
/* 0x004a */ s16 field_0x4a;
|
||||
/* 0x004c */ f32 field_0x4c;
|
||||
/* 0x0050 */ u16 field_0x50;
|
||||
/* 0x0054 */ f32 field_0x54;
|
||||
|
||||
+10
-1
@@ -124,7 +124,16 @@ daCLOTH_ChildHIO_c::daCLOTH_ChildHIO_c() {
|
||||
|
||||
/* 801996C4-8019977C .text lightSet1__9dMCloth_cF4cXyz */
|
||||
void dMCloth_c::lightSet1(cXyz) {
|
||||
/* Nonmatching */
|
||||
GXLightObj light;
|
||||
const f32 f0 = l_HIO.mChildren[mClothType].field_0x4c;
|
||||
GXInitLightPos(
|
||||
&light,
|
||||
-f0 * cM_ssin(l_HIO.mChildren[mClothType].field_0x4a) * cM_scos(l_HIO.mChildren[mClothType].field_0x48),
|
||||
-f0 * cM_ssin(l_HIO.mChildren[mClothType].field_0x48),
|
||||
-f0 * cM_scos(l_HIO.mChildren[mClothType].field_0x4a) * cM_scos(l_HIO.mChildren[mClothType].field_0x48)
|
||||
);
|
||||
GXInitLightColor(&light, (GXColor){0xFF, 0xFF, 0xFF, 0x00});
|
||||
GXLoadLightObjImm(&light, GX_LIGHT0);
|
||||
}
|
||||
|
||||
/* 8019977C-80199CD0 .text cloth_init__9dMCloth_cFv */
|
||||
|
||||
Reference in New Issue
Block a user