Files
bigmak94andClaude Opus 5.5 4b395efe5c Add the Petari decompilation (SMGCommunity/Petari@0a5c660)
The sources of Petari (https://github.com/SMGCommunity/Petari), the
Super Mario Galaxy decompilation by the SMGCommunity, at commit
0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line
endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and
src/.  Left out: the game data Petari keeps from the original
executable, the error message archive (include/Game/System/
ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and
StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's
own disc.  The port's changes follow in the next commit, so
`git diff petari-base -- decomp` shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 01:59:38 +02:00

59 lines
1.5 KiB
C++

#pragma once
#include <revolution/gx/GXStruct.h>
#include <revolution/types.h>
class FogCtrl;
class FurParam {
public:
/* 0x00 */ s32 mNumLayers;
/* 0x04 */ f32 mLength;
/* 0x08 */ f32 mLengthCurve;
/* 0x0C */ f32 mIndirect;
/* 0x10 */ f32 mIndirectCurve;
/* 0x14 */ f32 mBrightnessTip;
/* 0x18 */ f32 mBrightnessRoot;
/* 0x1C */ f32 mBrightnessCurve;
/* 0x20 */ f32 mAlphaTip;
/* 0x24 */ f32 mAlphaRoot;
/* 0x28 */ f32 mAlphaCurve;
/* 0x2C */ f32 mSkinAlphaTip;
/* 0x30 */ f32 mSkinAlphaRoot;
/* 0x34 */ f32 mSkinAlphaCurve;
/* 0x38 */ f32 mFurUVScale;
/* 0x3C */ f32 mBodyUVScale;
/* 0x40 */ GXColor mColor;
/* 0x44 */ f32 mDensity[4];
/* 0x54 */ f32 mThickness[4];
/* 0x64 */ u8 mLengthMap[4];
};
class FurLightParam {
public:
FurLightParam()
: mLightMask(1), mSpecularLightMask(), mMatIntensity(255), mAmbIntensity(50), mSpecularMatIntensity(255), mSpecularAmbIntensity(),
mLightType(-1) {
mColorSource = 0;
}
/* 0x00 */ u16 mLightMask;
/* 0x02 */ u16 mSpecularLightMask;
/* 0x04 */ u8 mMatIntensity;
/* 0x05 */ u8 mAmbIntensity;
/* 0x06 */ u8 mSpecularMatIntensity;
/* 0x07 */ u8 mSpecularAmbIntensity;
/* 0x08 */ u8 mColorSource;
/* 0x0C */ s32 mLightType;
};
class DynamicFurParam {
public:
/* 0x00 */ FogCtrl* mFogCtrl;
/* 0x04 */ FurLightParam* mLightParam;
};
namespace MR {
void initFurParamFromDvd(FurParam*, DynamicFurParam*, char*, u32);
}