summaryrefslogtreecommitdiff
path: root/lyt/materials/material.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lyt/materials/material.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lyt/materials/material.h b/lyt/materials/material.h
index a42a9d8..025b304 100644
--- a/lyt/materials/material.h
+++ b/lyt/materials/material.h
@@ -45,9 +45,9 @@ public:
quint32 value() const { return m_value; }
- int getTexMapNum() const { return BitExtract(m_value, 4, 28); }
- int getTexSRTNum() const { return BitExtract(m_value, 4, 24); }
- int getTexCoordGenNum() const { return BitExtract(m_value, 4, 20); }
+ int getTexMapNum() const { return BitExtract(m_value, 2, 30); }
+ int getTexSRTNum() const { return BitExtract(m_value, 2, 28); }
+ int getTexCoordGenNum() const { return BitExtract(m_value, 2, 26); }
bool hasChanCtrl() const { return BitExtract(m_value, 1, 6); }
bool hasMatCol() const { return BitExtract(m_value, 1, 4); }
bool hasTevSwapTable() const { return BitExtract(m_value, 1, 19); }