From b8a5169b787b4a829b5d4e812856cf6efd838489 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Thu, 26 Dec 2024 13:47:30 +0000 Subject: [PATCH] Parse anim light cutoff in LmParams --- KeepersCompound.LGS/Database/Chunks/LmParams.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KeepersCompound.LGS/Database/Chunks/LmParams.cs b/KeepersCompound.LGS/Database/Chunks/LmParams.cs index 5cd4dc2..1dc1780 100644 --- a/KeepersCompound.LGS/Database/Chunks/LmParams.cs +++ b/KeepersCompound.LGS/Database/Chunks/LmParams.cs @@ -37,9 +37,9 @@ public class LmParams : IChunk public DepthMode ShadowDepth { get; set; } public bool LightmappedWater { get; set; } public int LightmapScale { get; set; } + public uint AnimLightCutoff { get; set; } private int _dataSize; - private uint _unknown; public void ReadData(BinaryReader reader, DbFile.TableOfContents.Entry entry) { @@ -53,7 +53,7 @@ public class LmParams : IChunk LightmappedWater = reader.ReadBoolean(); reader.ReadBytes(3); LightmapScale = reader.ReadInt32(); - _unknown = reader.ReadUInt32(); + AnimLightCutoff = reader.ReadUInt32(); } public void WriteData(BinaryWriter writer) @@ -68,6 +68,6 @@ public class LmParams : IChunk writer.Write(LightmappedWater); writer.Write(new byte[3]); writer.Write(LightmapScale); - writer.Write(_unknown); + writer.Write(AnimLightCutoff); } } \ No newline at end of file