Browse Source

Add Missing Strings to aiTextureTypeToString (#6188)

Anisotropy and gltf metallic roughness were missing strings

Co-authored-by: Kim Kulling <[email protected]>
crasong 2 months ago
parent
commit
315075c4a6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      code/Common/material.cpp

+ 4 - 0
code/Common/material.cpp

@@ -98,6 +98,10 @@ const char *aiTextureTypeToString(aiTextureType in) {
         return "MayaSpecularColor";
         return "MayaSpecularColor";
     case aiTextureType_MAYA_SPECULAR_ROUGHNESS:
     case aiTextureType_MAYA_SPECULAR_ROUGHNESS:
         return "MayaSpecularRoughness";
         return "MayaSpecularRoughness";
+    case aiTextureType_ANISOTROPY:
+        return "Anisotropy";
+    case aiTextureType_GLTF_METALLIC_ROUGHNESS:
+        return "glTFMetallicRoughness";
     case aiTextureType_UNKNOWN:
     case aiTextureType_UNKNOWN:
         return "Unknown";
         return "Unknown";
     default:
     default: