mirror of
https://gitlab.com/banjo.decomp/banjo-kazooie
synced 2026-08-29 08:20:11 -04:00
30 lines
698 B
C
30 lines
698 B
C
#ifndef _LIGHTING_H_
|
|
#define _LIGHTING_H_
|
|
#include <ultratypes.h>
|
|
|
|
typedef struct {
|
|
f32 position[3];
|
|
f32 positionCopy[3];
|
|
f32 fade_radius_min_unscaled; // unk
|
|
f32 fade_radius_max_unscaled; // unk
|
|
f32 fade_radius_min; // result of unk18 / actor scale, some sort of distance
|
|
f32 fade_radius_max; // result of unk1C / actor scale, some sort of distance (determines whether to modify rgb of vertex)
|
|
|
|
union
|
|
{
|
|
s32 rgb[3];
|
|
struct {
|
|
s32 red;
|
|
s32 green;
|
|
s32 blue;
|
|
};
|
|
};
|
|
|
|
u8 active; // some sort of flag
|
|
u8 pad35[0x3];
|
|
} Lighting; //size 0x38
|
|
|
|
void lighting_free();
|
|
void lighting_init();
|
|
#endif
|