From 558f651534f968655bb7e34e31a76a4458d2cf9e Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 15 Mar 2021 20:38:05 +0900 Subject: [PATCH] fix normalMap extract --- .../UniGLTF/ScriptedImporter/EditorMaterial.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/EditorMaterial.cs b/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/EditorMaterial.cs index 1d977f8dd..a918fa8b4 100644 --- a/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/EditorMaterial.cs +++ b/Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/EditorMaterial.cs @@ -51,7 +51,17 @@ namespace UniGLTF s_foldTextures = EditorGUILayout.Foldout(s_foldTextures, "Remapped Textures"); if (s_foldTextures) { - DrawRemapGUI(importer, GltfTextureEnumerator.Enumerate(parser.GLTF).Select(x => x.ConvertedName)); + DrawRemapGUI(importer, GltfTextureEnumerator.Enumerate(parser.GLTF).Select(x => + { + switch (x.TextureType) + { + case GetTextureParam.TextureTypes.NormalMap: + return x.GltflName; + + default: + return x.ConvertedName; + } + })); } if (GUILayout.Button("Clear"))