Parse anim light cutoff in LmParams
This commit is contained in:
parent
a5571c9f76
commit
b8a5169b78
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue