Browse Source

Updated Material.cpp to add missing cases (#5945)

Jackson Levitt 8 months ago
parent
commit
2f40a77ae1
1 changed files with 8 additions and 0 deletions
  1. 8 0
      code/Common/material.cpp

+ 8 - 0
code/Common/material.cpp

@@ -90,6 +90,14 @@ const char *aiTextureTypeToString(aiTextureType in) {
         return "Clearcoat";
     case aiTextureType_TRANSMISSION:
         return "Transmission";
+    case aiTextureType_MAYA_BASE:
+        return "MayaBase";
+    case aiTextureType_MAYA_SPECULAR:
+        return "MayaSpecular";
+    case aiTextureType_MAYA_SPECULAR_COLOR: 
+        return "MayaSpecularColor";
+    case aiTextureType_MAYA_SPECULAR_ROUGHNESS:
+        return "MayaSpecularRoughness";
     case aiTextureType_UNKNOWN:
         return "Unknown";
     default: