Skip to content
Snippets Groups Projects
Commit 3a8485ad authored by Tazpn's avatar Tazpn
Browse files

niflib: Update texture map index enumeration to reflect newer NIF versions

parent f035b68b
No related branches found
No related tags found
No related merge requests found
......@@ -497,8 +497,12 @@ enum TexType {
GLOSS_MAP = 3, /*!< Allows the specularity (glossyness) of an object to differ across its surface. */
GLOW_MAP = 4, /*!< Creates a glowing effect. Basically an incandescence map. */
BUMP_MAP = 5, /*!< Used to make the object appear to have more detail than it really does. */
DECAL_0_MAP = 6, /*!< For placing images on the object like stickers. */
DECAL_1_MAP = 7, /*!< For placing images on the object like stickers. */
NORMAL_MAP = 6, /*!< Used to make the object appear to have more detail than it really does. */
UNKNOWN2_MAP = 7, /*!< Unknown map. */
DECAL_0_MAP = 8, /*!< For placing images on the object like stickers. */
DECAL_1_MAP = 9, /*!< For placing images on the object like stickers. */
DECAL_2_MAP = 10, /*!< For placing images on the object like stickers. */
DECAL_3_MAP = 11, /*!< For placing images on the object like stickers. */
};
ostream & operator<<( ostream & out, TexType const & val );
......
......@@ -879,8 +879,12 @@ ostream & operator<<( ostream & out, TexType const & val ) {
case GLOSS_MAP: return out << "GLOSS_MAP";
case GLOW_MAP: return out << "GLOW_MAP";
case BUMP_MAP: return out << "BUMP_MAP";
case NORMAL_MAP: return out << "NORMAL_MAP";
case UNKNOWN2_MAP: return out << "UNKNOWN2_MAP";
case DECAL_0_MAP: return out << "DECAL_0_MAP";
case DECAL_1_MAP: return out << "DECAL_1_MAP";
case DECAL_2_MAP: return out << "DECAL_2_MAP";
case DECAL_3_MAP: return out << "DECAL_3_MAP";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
......
......@@ -1573,6 +1573,7 @@ void NiTexturingProperty::SetTextureCount( int new_count ) {
ClearTexture(i);
}
}
textureCount = new_count;
}
void NiTexturingProperty::SetShaderTextureCount( int new_count ) {
......@@ -1614,6 +1615,14 @@ void NiTexturingProperty::SetTexture( int n, TexDesc & new_val ) {
hasBumpMapTexture = true;
bumpMapTexture = new_val;
break;
case NORMAL_MAP:
hasNormalTexture = true;
normalTexture = new_val;
break;
case UNKNOWN2_MAP:
hasUnknown2Texture = true;
unknown2Texture = new_val;
break;
case DECAL_0_MAP:
hasDecal0Texture = true;
decal0Texture = new_val;
......@@ -1622,6 +1631,14 @@ void NiTexturingProperty::SetTexture( int n, TexDesc & new_val ) {
hasDecal1Texture = true;
decal1Texture = new_val;
break;
case DECAL_2_MAP:
hasDecal2Texture = true;
decal2Texture = new_val;
break;
case DECAL_3_MAP:
hasDecal3Texture = true;
decal3Texture = new_val;
break;
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment