mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 19:39:13 +00:00
Implement fog
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user