mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-22 05:01:24 +02:00
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>
61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
#include <revolution.h>
|
|
|
|
class DynamicFurParam;
|
|
class JUTTexture;
|
|
struct ResTIMG;
|
|
|
|
class FurDrawer {
|
|
public:
|
|
class CLayerParam {
|
|
public:
|
|
CLayerParam(f32 tip, f32 curve) : mTip(tip), mCurve(curve) {
|
|
}
|
|
|
|
f32 calcValue(s32, s32) const;
|
|
|
|
/* 0x00 */ f32 mTip;
|
|
/* 0x04 */ f32 mRoot;
|
|
/* 0x08 */ f32 mCurve;
|
|
};
|
|
|
|
FurDrawer(u32, ResTIMG*, ResTIMG*);
|
|
|
|
void update() NO_INLINE;
|
|
void setupMaterial(DynamicFurParam*) const;
|
|
void setupLayerMaterial(s32) const;
|
|
void createFurMap();
|
|
|
|
/* 0x00 */ JUTTexture* mBodyTexture;
|
|
/* 0x04 */ JUTTexture* mFurTexture;
|
|
/* 0x08 */ JUTTexture* mIndirectTexture;
|
|
/* 0x0C */ s32 mNumLayers;
|
|
/* 0x10 */ CLayerParam mLength;
|
|
/* 0x1C */ CLayerParam mIndirect;
|
|
/* 0x28 */ CLayerParam mBrightness;
|
|
/* 0x34 */ CLayerParam mAlpha;
|
|
/* 0x40 */ f32 mFurUVScale;
|
|
/* 0x44 */ u32 mMixFog;
|
|
/* 0x48 */ f32 mBodyUVScale;
|
|
/* 0x4C */ f32 mDensity[4];
|
|
/* 0x5C */ f32 mThickness[4];
|
|
/* 0x6C */ u8 mLengthMap[4];
|
|
/* 0x70 */ CLayerParam mColorBlend;
|
|
/* 0x7C */ GXColor mColor;
|
|
/* 0x80 */ u8 mCullMode;
|
|
/* 0x81 */ u8 mMatIntensity;
|
|
/* 0x82 */ u8 mAmbIntensity;
|
|
/* 0x83 */ u8 mUseIndirect;
|
|
/* 0x84 */ u8 mZCompLoc;
|
|
/* 0x85 */ u8 mZWrite;
|
|
/* 0x86 */ u8 mAdditive;
|
|
/* 0x87 */ u8 mAlphaRef;
|
|
/* 0x88 */ Mtx mFurTexMtx;
|
|
/* 0xB8 */ Mtx mIndirectTexMtx;
|
|
/* 0xE8 */ TVec3f mFogPosition;
|
|
/* 0xF4 */ f32 mFogWidth;
|
|
/* 0xF8 */ u8 mUseDensityMap;
|
|
};
|