port: fix sun glare

This commit is contained in:
fgsfds committed 2025-06-02 23:07:35 +02:00
1 parent 790374e95f
commit d9185982f8
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -2533,7 +2533,13 @@ f32 skyGetArtifactGroupIntensityFrac(struct artifact *artifacts)
s32 i; s32 i;
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
if (artifacts[i].type == ARTIFACTTYPE_CIRCLE && artifacts[i].actualdepth == 0xfffc) { const u16 test =
#ifdef PLATFORM_N64
artifacts[i].actualdepth;
#else
artifacts[i].visiblelos;
#endif
if (artifacts[i].type == ARTIFACTTYPE_CIRCLE && test == 0xfffc) {
sum += 0.125f; sum += 0.125f;
} }
} }
+1 -1
View File
@@ -10,6 +10,6 @@ void zbufAllocate(void);
void zbufSwap(void); void zbufSwap(void);
Gfx *zbufConfigureRdp(Gfx *gdl); Gfx *zbufConfigureRdp(Gfx *gdl);
Gfx *zbufClear(Gfx *gdl); Gfx *zbufClear(Gfx *gdl);
Gfx *zbufDrawArtifactsOffscreen(Gfx *gdl); Gfx *zbufSaveArtifactDepths(Gfx *gdl);
#endif #endif