papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
sprite_shading.c File Reference

Functions

void appendGfx_shading_palette (Matrix4f mtx, s32 uls, s32 ult, s32 lrs, s32 lrt, s32 alpha, f32 shadowX, f32 shadowY, f32 shadowZ, s32 shadowR, s32 shadowG, s32 shadowB, s32 highlightR, s32 highlightG, s32 highlightB, s32 ambientPower, s32 otherModeLBits)
 
void clear_sprite_shading_data (void)
 
void init_sprite_shading_data (void)
 
void sprite_shading_set_light_source (u32 idx, s8 flags, f32 x, f32 y, f32 z, u8 r, u8 g, u8 b, f32 falloff, s8 arg9)
 
void create_shading_palette (Matrix4f mtx, s32 uls, s32 ult, s32 lrs, s32 lrt, s32 alpha, s32 otherModeLBits)
 
void func_801491E4 (Matrix4f mtx, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 alpha)
 

Variables

SpriteShadingProfilegSpriteShadingProfile
 
SpriteShadingProfilegAuxSpriteShadingProfile
 
BSS SpriteShadingProfile wSpriteShadingProfile
 
BSS SpriteShadingProfile bSpriteShadingProfile
 
BSS SpriteShadingProfile wSpriteShadingProfileAux
 
BSS SpriteShadingProfile bSpriteShadingProfileAux
 
BSS PAL_BIN SpriteShadingPalette [16]
 

Function Documentation

◆ appendGfx_shading_palette()

void appendGfx_shading_palette ( Matrix4f mtx,
s32 uls,
s32 ult,
s32 lrs,
s32 lrt,
s32 alpha,
f32 shadowX,
f32 shadowY,
f32 shadowZ,
s32 shadowR,
s32 shadowG,
s32 shadowB,
s32 highlightR,
s32 highlightG,
s32 highlightB,
s32 ambientPower,
s32 otherModeLBits )

Referenced by create_shading_palette().

◆ clear_sprite_shading_data()

◆ create_shading_palette()

void create_shading_palette ( Matrix4f mtx,
s32 uls,
s32 ult,
s32 lrs,
s32 lrt,
s32 alpha,
s32 otherModeLBits )

◆ func_801491E4()

void func_801491E4 ( Matrix4f mtx,
s32 arg1,
s32 arg2,
s32 arg3,
s32 arg4,
s32 alpha )

◆ init_sprite_shading_data()

◆ sprite_shading_set_light_source()

void sprite_shading_set_light_source ( u32 idx,
s8 flags,
f32 x,
f32 y,
f32 z,
u8 r,
u8 g,
u8 b,
f32 falloff,
s8 arg9 )

Variable Documentation

◆ bSpriteShadingProfile

BSS SpriteShadingProfile bSpriteShadingProfile

◆ bSpriteShadingProfileAux

BSS SpriteShadingProfile bSpriteShadingProfileAux

◆ gAuxSpriteShadingProfile

SpriteShadingProfile* gAuxSpriteShadingProfile

◆ gSpriteShadingProfile

◆ SpriteShadingPalette

BSS PAL_BIN SpriteShadingPalette[16]

◆ wSpriteShadingProfile

BSS SpriteShadingProfile wSpriteShadingProfile

◆ wSpriteShadingProfileAux

BSS SpriteShadingProfile wSpriteShadingProfileAux