summaryrefslogtreecommitdiff
path: root/NW4RTools/BrresReader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'NW4RTools/BrresReader.cs')
-rw-r--r--NW4RTools/BrresReader.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/NW4RTools/BrresReader.cs b/NW4RTools/BrresReader.cs
index 70463d6..36634d0 100644
--- a/NW4RTools/BrresReader.cs
+++ b/NW4RTools/BrresReader.cs
@@ -426,9 +426,8 @@ namespace NW4RTools {
Int32 unkOffset = ins.ReadInt32();
Debug.Send("Unknown offset for {0}: {1:X} [dest {2:X}]", name, unkOffset, startPos + unkOffset);
- // Need to implement DLs...
Int32 dlOffset = ins.ReadInt32();
- Debug.Send("DL offset for {0}: {1:X} [dest {2:X}]", name, dlOffset, startPos + dlOffset);
+ //Debug.Send("DL offset for {0}: {1:X} [dest {2:X}]", name, dlOffset, startPos + dlOffset);
// ResTexObj
int ResTexObjPos = ins.Position;
@@ -543,6 +542,15 @@ namespace NW4RTools {
ins.Skip(2);
}
+ // Display Lists
+ OffsetMap.Add(startPos + dlOffset, "Material Display Lists: " + name);
+
+ ins.Seek(startPos + dlOffset);
+ m.PixDL = ins.ReadBytes(0x20);
+ m.TevColorDL = ins.ReadBytes(0x80);
+ m.IndMtxAndScaleDL = ins.ReadBytes(0x40);
+ m.TexCoordGenDL = ins.ReadBytes(0xA0);
+
return m;
}