summaryrefslogtreecommitdiff
path: root/NW4RTools/Models/Material.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-05 05:25:14 +0100
committerTreeki <treeki@gmail.com>2011-03-05 05:25:14 +0100
commite962fd89af865d6e01522e9752f5fbd855ce128a (patch)
tree0fb19e74a2d87b2ece48152fee2b2f4ed963828c /NW4RTools/Models/Material.cs
parenta5b6dc1789f2e06a26fe6a0510aee04aeccdc70b (diff)
downloadnw4rtools-e962fd89af865d6e01522e9752f5fbd855ce128a.tar.gz
nw4rtools-e962fd89af865d6e01522e9752f5fbd855ce128a.zip
partially working obj importer. still untested in-game
Diffstat (limited to '')
-rw-r--r--NW4RTools/Models/Material.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/NW4RTools/Models/Material.cs b/NW4RTools/Models/Material.cs
index 0bf0acc..519790c 100644
--- a/NW4RTools/Models/Material.cs
+++ b/NW4RTools/Models/Material.cs
@@ -18,6 +18,17 @@ namespace NW4RTools.Models {
public byte MapType;
public byte Flags;
public Matrix TexMatrix;
+
+ public SRTSettingInfo() {
+ ScaleX = 1.0f;
+ ScaleY = 1.0f;
+
+ CameraID = 0xFF;
+ LightID = 0xFf;
+ Flags = 1;
+
+ TexMatrix.Identity();
+ }
}
@@ -62,6 +73,8 @@ namespace NW4RTools.Models {
IndirectTexMtxCalcMethod2 = new byte[4];
TexObj = new byte[8][];
// todo
+ SRTSettings = new SRTSettingInfo[8];
+ ChanCtrls = new ChanCtrl[2];
TextureInfos = new List<TextureInfo>();
}
}