summaryrefslogtreecommitdiff
path: root/NW4RTools/Models/Shader.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-03 04:53:56 +0100
committerTreeki <treeki@gmail.com>2011-03-03 04:53:56 +0100
commitab340fe4dc87086336643b6b616df6efdfac796b (patch)
treeaa01265000e80c8348631f3ae67cc6ded16d90bb /NW4RTools/Models/Shader.cs
parent6b14bc71cb699b72ca6cf164b7b800add414dec6 (diff)
downloadnw4rtools-ab340fe4dc87086336643b6b616df6efdfac796b.tar.gz
nw4rtools-ab340fe4dc87086336643b6b616df6efdfac796b.zip
working (but not 100% tested) model and texture writing. a few other fixes, etc
Diffstat (limited to '')
-rw-r--r--NW4RTools/Models/Shader.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/NW4RTools/Models/Shader.cs b/NW4RTools/Models/Shader.cs
index 767470e..6510110 100644
--- a/NW4RTools/Models/Shader.cs
+++ b/NW4RTools/Models/Shader.cs
@@ -10,6 +10,25 @@ namespace NW4RTools.Models {
public Shader() {
}
+
+
+ public bool DataMatches(Shader another) {
+ if (another.TevStageCount != TevStageCount)
+ return false;
+
+ if (another.Unk1 != Unk1 || another.Unk2 != Unk2)
+ return false;
+
+ if (another.DisplayList.Length != DisplayList.Length)
+ return false;
+
+ for (int i = 0; i < DisplayList.Length; i++) {
+ if (another.DisplayList[i] != DisplayList[i])
+ return false;
+ }
+
+ return true;
+ }
}
}