summaryrefslogtreecommitdiff
path: root/NW4RTools/Models
diff options
context:
space:
mode:
Diffstat (limited to 'NW4RTools/Models')
-rw-r--r--NW4RTools/Models/Material.cs5
-rw-r--r--NW4RTools/Models/Model.cs11
-rw-r--r--NW4RTools/Models/Shape.cs3
3 files changed, 19 insertions, 0 deletions
diff --git a/NW4RTools/Models/Material.cs b/NW4RTools/Models/Material.cs
index 9e90348..0bf0acc 100644
--- a/NW4RTools/Models/Material.cs
+++ b/NW4RTools/Models/Material.cs
@@ -58,6 +58,11 @@ namespace NW4RTools.Models {
public byte[] TexCoordGenDL;
public Material() {
+ IndirectTexMtxCalcMethod1 = new byte[4];
+ IndirectTexMtxCalcMethod2 = new byte[4];
+ TexObj = new byte[8][];
+ // todo
+ TextureInfos = new List<TextureInfo>();
}
}
}
diff --git a/NW4RTools/Models/Model.cs b/NW4RTools/Models/Model.cs
index 71edaf3..7c7e912 100644
--- a/NW4RTools/Models/Model.cs
+++ b/NW4RTools/Models/Model.cs
@@ -40,6 +40,17 @@ namespace NW4RTools.Models {
public Model() {
+ Bytecode = new ResDict<ByteCode>();
+ Nodes = new ResDict<Node>();
+ VtxPosData = new ResDict<VertexPosData>();
+ VtxNrmData = new ResDict<VertexNrmData>();
+ VtxClrData = new ResDict<VertexClrData>();
+ VtxTexCoordData = new ResDict<VertexTexCoordData>();
+ Materials = new ResDict<Material>();
+ Shaders = new ResDict<Shader>();
+ Shapes = new ResDict<Shape>();
+ PairingLookupByTexture = new ResDict<List<TexMatPairing>>();
+ PairingLookupByPalette = new ResDict<List<TexMatPairing>>();
}
}
}
diff --git a/NW4RTools/Models/Shape.cs b/NW4RTools/Models/Shape.cs
index 87bf370..93ff70b 100644
--- a/NW4RTools/Models/Shape.cs
+++ b/NW4RTools/Models/Shape.cs
@@ -24,6 +24,9 @@ namespace NW4RTools.Models {
public UInt16[] ExtraData;
public Shape() {
+ Unk = new byte[12];
+ ClrData = new VertexClrData[2];
+ TexCoordData = new VertexTexCoordData[8];
}
}
}