2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 19:39:13 +00:00

Implement fog

This commit is contained in:
2022-03-14 19:12:18 -04:00
parent 9062e54c76
commit ec5f188063
6 changed files with 87 additions and 23 deletions

View File

@@ -59,10 +59,10 @@ static inline void update_fog(u32 value) noexcept {
return;
}
if ((value & 0xE0) == 0x20) {
// TODO
GXSetFogColor(zeus::skClear);
return;
}
// TODO
GXSetFogColor(sGXState.x25c_fogColor);
}
static inline void FlushState() noexcept {
@@ -186,8 +186,7 @@ static inline void SetFog(GX::FogType type, float startZ, float endZ, float near
if ((sGXState.x56_blendMode & 0xE0) == 0x20) {
fogColor = zeus::skClear;
}
// TODO
// GXSetFog(type, startZ, endZ, nearZ, farZ, fogColor);
GXSetFog(type, startZ, endZ, nearZ, farZ, fogColor);
}
void SetIndTexMtxSTPointFive(GX::IndTexMtxID id, s8 scaleExp) noexcept;