From 061954d73d7506356f2b763aefc897d8aabd5f2a Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 17 May 2025 12:52:20 -0400 Subject: [PATCH] Add another model flag, reorder --- src/model/mod.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/model/mod.rs b/src/model/mod.rs index 0607db0..48bde17 100755 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -55,19 +55,20 @@ pub struct ModelFileHeader { #[brw(repr = u8)] #[derive(Debug, Clone, PartialEq)] enum ModelFlags1 { - DustOcclusionEnabled = 0x80, - SnowOcclusionEnabled = 0x40, - RainOcclusionEnabled = 0x20, - LightingReflectionEnabled = 0x08, - WavingAnimationDisabled = 0x04, - LightShadowDisabled = 0x02, ShadowDisabled = 0x01, + LightShadowDisabled = 0x02, + WavingAnimationDisabled = 0x04, + LightingReflectionEnabled = 0x08, + RainOcclusionEnabled = 0x20, + SnowOcclusionEnabled = 0x40, + DustOcclusionEnabled = 0x80, // NOTE: these are most likely a combination of other flags Unknown1 = 0x10, Unknown2 = 0x5, // TODO: seen in some bgparts Unknown3 = 0xE4, // TODO: seen in some bgparts Unknown4 = 0xE5, // TODO: seen in some bgparts + Unknown5 = 0x6, } #[binrw]