Parse anim light cutoff in LmParams

This commit is contained in:
Jarrod Doyle 2024-12-26 13:47:30 +00:00
parent a5571c9f76
commit b8a5169b78
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ public class LmParams : IChunk
public DepthMode ShadowDepth { get; set; } public DepthMode ShadowDepth { get; set; }
public bool LightmappedWater { get; set; } public bool LightmappedWater { get; set; }
public int LightmapScale { get; set; } public int LightmapScale { get; set; }
public uint AnimLightCutoff { get; set; }
private int _dataSize; private int _dataSize;
private uint _unknown;
public void ReadData(BinaryReader reader, DbFile.TableOfContents.Entry entry) public void ReadData(BinaryReader reader, DbFile.TableOfContents.Entry entry)
{ {
@ -53,7 +53,7 @@ public class LmParams : IChunk
LightmappedWater = reader.ReadBoolean(); LightmappedWater = reader.ReadBoolean();
reader.ReadBytes(3); reader.ReadBytes(3);
LightmapScale = reader.ReadInt32(); LightmapScale = reader.ReadInt32();
_unknown = reader.ReadUInt32(); AnimLightCutoff = reader.ReadUInt32();
} }
public void WriteData(BinaryWriter writer) public void WriteData(BinaryWriter writer)
@ -68,6 +68,6 @@ public class LmParams : IChunk
writer.Write(LightmappedWater); writer.Write(LightmappedWater);
writer.Write(new byte[3]); writer.Write(new byte[3]);
writer.Write(LightmapScale); writer.Write(LightmapScale);
writer.Write(_unknown); writer.Write(AnimLightCutoff);
} }
} }