Decompile lightsCalculateGlareBrightness

This commit is contained in:
Ryan Dwyer
2022-08-04 22:28:34 +10:00
parent e6cf6899dd
commit 044537c4e8
4 changed files with 249 additions and 872 deletions
+2 -2
View File
@@ -1985,7 +1985,7 @@ Gfx *bgRenderScene(Gfx *gdl)
}
if (!g_Vars.mplayerisrunning) {
func0f13c780(thing->roomnum);
lightsCalculateGlareBrightness(thing->roomnum);
if (var8007fc14 < 100) {
var800a4bf8[var8007fc14++] = thing->roomnum;
@@ -2675,7 +2675,7 @@ glabel bgRenderScene
/* f1556f4: 8d8ce9d4 */ lw $t4,-0x162c($t4)
/* f1556f8: 5580000f */ bnezl $t4,.NB0f155738
/* f1556fc: 2673fffe */ addiu $s3,$s3,-2
/* f155700: 0fc4dca0 */ jal func0f13c780
/* f155700: 0fc4dca0 */ jal lightsCalculateGlareBrightness
/* f155704: 86040000 */ lh $a0,0x0($s0)
/* f155708: 3c028008 */ lui $v0,0x8008
/* f15570c: 8c422478 */ lw $v0,0x2478($v0)
+242 -866
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -8,7 +8,7 @@ void func0f13c510(void);
void func0f13c54c(void);
u16 func0f13c574(f32 arg0);
s32 func0f13c710(f32 arg0);
void func0f13c780(s32 arg0);
void lightsCalculateGlareBrightness(s32 roomnum);
u8 func0f13d3c4(u8 arg0, u8 arg1);
Gfx *func0f13d40c(Gfx *gdl);
Gfx *func0f13d54c(Gfx *gdl);
+4 -3
View File
@@ -3470,7 +3470,7 @@ struct bootbufferthingdeep {
u16 u16_2;
};
} unk0c;
u32 unk10;
struct light *light;
};
struct bootbufferthing2 {
@@ -3556,7 +3556,8 @@ struct roomgfxdata {
/*0x04*/ u32 *colours;
/*0x08*/ struct roomgfxdata18 *unk08; // opa
/*0x0c*/ struct roomgfxdata18 *unk0c; // xlu
/*0x10*/ s32 unk10;
/*0x10*/ s16 lightsindex;
/*0x12*/ s16 numlights;
/*0x14*/ s16 numvertices;
/*0x16*/ s16 numcolours;
/*0x18*/ struct roomgfxdata18 unk18[1];
@@ -4638,7 +4639,7 @@ struct smoke {
union {
// The thing generating smoke
struct prop *sourceprop;
struct padeffect *padeffect;
struct padeffectobj *padeffect;
void *source;
};
};