Decompile artifactsRenderGlaresForRoom

This commit is contained in:
Ryan Dwyer
2022-08-05 22:59:59 +10:00
parent 59a216bc2a
commit 7364fb8e0e
9 changed files with 256 additions and 841 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ Gfx *bgRenderRoomXrayPass(Gfx *gdl, s32 roomnum, struct roomgfxdata18 *arg2, boo
Gfx *bgRenderRoomInXray(Gfx *gdl, s32 roomnum);
Gfx *bgRenderSceneInXray(Gfx *gdl);
Gfx *bgRenderScene(Gfx *gdl);
Gfx *func0f15b114(Gfx *gdl);
Gfx *bgRenderArtifacts(Gfx *gdl);
void bgLoadFile(void *memaddr, u32 offset, u32 len);
s32 stageGetIndex2(s32 stagenum);
f32 portal0f15b274(s32 portal);
+2 -2
View File
@@ -8,10 +8,10 @@ void func0f13c510(void);
void func0f13c54c(void);
u16 func0f13c574(f32 arg0);
s32 func0f13c710(f32 arg0);
void lightsCalculateGlareBrightness(s32 roomnum);
void artifactsCalculateGlaresForRoom(s32 roomnum);
u8 func0f13d3c4(u8 arg0, u8 arg1);
Gfx *func0f13d40c(Gfx *gdl);
Gfx *func0f13d54c(Gfx *gdl);
Gfx *func0f13d568(Gfx *gdl, u32 arg1);
Gfx *artifactsRenderGlaresForRoom(Gfx *gdl, s32 roomnum);
#endif
+1 -1
View File
@@ -27,7 +27,7 @@ Gfx *skyRenderSuns(Gfx *gdl, bool xray);
Gfx *sky0f126384(Gfx *gdl, f32 x, f32 y, f32 arg3, f32 orbsize, s32 arg5, f32 arg6);
Gfx *sky0f126c3c(Gfx *gdl, f32 x, f32 y, f32 z, f32 arg4, f32 arg5);
Gfx *sky0f126de8(Gfx *gdl);
Gfx *sky0f12715c(Gfx *gdl);
Gfx *skyRenderArtifacts(Gfx *gdl);
void sky0f127334(s32 arg0, s32 arg1, s32 arg2);
s32 sky0f127490(s32 arg0, s32 arg1);
Gfx *sky0f1274d8(Gfx *gdl);
+10 -5
View File
@@ -5465,17 +5465,22 @@ struct lasersight {
};
struct vec3s16 {
s16 x;
s16 y;
s16 z;
union {
struct {
s16 x;
s16 y;
s16 z;
};
s16 s[3];
};
};
struct light {
/*0x00*/ u16 roomnum;
/*0x02*/ u16 unk02;
/*0x02*/ u16 colour; // 4/4/4/4
/*0x04*/ u8 unk04;
/*0x05*/ u8 unk05_00 : 1;
/*0x05*/ u8 healthy : 1; // just a guess based on context
/*0x05*/ u8 healthy : 1;
/*0x05*/ u8 on : 1;
/*0x05*/ u8 sparking : 1;
/*0x05*/ u8 vulnerable : 1;