mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 15:02:54 +08:00
Reverted Unknown_2Ch in DrawableModel, added the info as comment
This commit is contained in:
parent
b6cbcb6ea7
commit
e12fbc6743
@ -1034,10 +1034,7 @@ namespace CodeWalker.GameFiles
|
||||
public ulong BoundsPointer { get; set; }
|
||||
public ulong ShaderMappingPointer { get; set; }
|
||||
public uint Unknown_28h { get; set; }
|
||||
public byte Mask { get; set; }
|
||||
public byte Unknown_2Dh { get; set; }
|
||||
public byte Unknown_2Eh { get; set; } //ShaderMappingCount ??
|
||||
public byte Unknown_2Fh { get; set; }
|
||||
public uint Unknown_2Ch { get; set; } //First byte is called "Mask" in GIMS EVO, third byte is always equal to GeometriesCount, is it ShaderMappingCount?
|
||||
|
||||
// reference data
|
||||
public ResourcePointerArray64<DrawableGeometry> Geometries { get; set; }
|
||||
@ -1100,10 +1097,7 @@ namespace CodeWalker.GameFiles
|
||||
this.BoundsPointer = reader.ReadUInt64();
|
||||
this.ShaderMappingPointer = reader.ReadUInt64();
|
||||
this.Unknown_28h = reader.ReadUInt32();
|
||||
this.Mask = reader.ReadByte();
|
||||
this.Unknown_2Dh = reader.ReadByte();
|
||||
this.Unknown_2Eh = reader.ReadByte();
|
||||
this.Unknown_2Fh = reader.ReadByte();
|
||||
this.Unknown_2Ch = reader.ReadUInt32();
|
||||
|
||||
// read reference data
|
||||
this.Geometries = reader.ReadBlockAt<ResourcePointerArray64<DrawableGeometry>>(
|
||||
@ -1145,10 +1139,7 @@ namespace CodeWalker.GameFiles
|
||||
writer.Write(this.BoundsPointer);
|
||||
writer.Write(this.ShaderMappingPointer);
|
||||
writer.Write(this.Unknown_28h);
|
||||
writer.Write(this.Mask);
|
||||
writer.Write(this.Unknown_2Dh);
|
||||
writer.Write(this.Unknown_2Eh);
|
||||
writer.Write(this.Unknown_2Fh);
|
||||
writer.Write(this.Unknown_2Ch);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -282,7 +282,7 @@ namespace CodeWalker.Rendering
|
||||
Unk4h = dmodel.Unknown_4h;
|
||||
Unk14h = dmodel.Unknown_14h;
|
||||
Unk28h = dmodel.Unknown_28h;
|
||||
Unk2Ch = dmodel.Mask;
|
||||
Unk2Ch = dmodel.Unknown_2Ch; //only the first byte of Unknown_2Ch seems be related to this
|
||||
|
||||
|
||||
DrawableModel = dmodel;
|
||||
|
Loading…
Reference in New Issue
Block a user