diff options
author | Treeki <treeki@gmail.com> | 2011-02-05 04:34:12 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-05 04:34:12 +0100 |
commit | fe451ef6fb5ea07b45fdaf4218001558bb171ef0 (patch) | |
tree | 453501a8a560e82e542e7a183babcd06e71baa97 /NW4RTools/Models/Material.cs | |
parent | db8fc350b2bffda63d27797bfe7ae4afb4af327e (diff) | |
download | nw4rtools-fe451ef6fb5ea07b45fdaf4218001558bb171ef0.tar.gz nw4rtools-fe451ef6fb5ea07b45fdaf4218001558bb171ef0.zip |
progress on material reading. still need to add DL handling and figure out what
the shader data offset is for (probably points to an entry in the Shaders dict)
Diffstat (limited to '')
-rw-r--r-- | NW4RTools/Models/Material.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/NW4RTools/Models/Material.cs b/NW4RTools/Models/Material.cs index bb1b85a..4540b0d 100644 --- a/NW4RTools/Models/Material.cs +++ b/NW4RTools/Models/Material.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; namespace NW4RTools.Models { public class ChanCtrl { @@ -7,6 +8,8 @@ namespace NW4RTools.Models { public UInt32 FlagC, FlagA; } + + // TODO: Rename this class? public class SRTSettingInfo { public float ScaleX, ScaleY, Rotate, TranslateX, TranslateY; @@ -22,6 +25,7 @@ namespace NW4RTools.Models { public UInt32 TexMapID, TlutID, WrapS, WrapT, MinFilt, MagFilt; public float LODBias; public UInt32 MaxAniso; + public bool BiasClamp, DoEdgeLOD; } @@ -43,8 +47,15 @@ namespace NW4RTools.Models { public byte[] TlutObj; // ResTexSrt + public UInt32 TexMatrixType; public SRTSettingInfo[] SRTSettings; + // ResMatChan + public ChanCtrl[] ChanCtrls; + + // Other + public List<BoundTextureInfo> BoundTextures; + // UNFINISHED public Material() { |