mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-19 08:41:49 -05:00
fix normalMap extract
This commit is contained in:
parent
13e43bd6d6
commit
558f651534
|
|
@ -51,7 +51,17 @@ namespace UniGLTF
|
|||
s_foldTextures = EditorGUILayout.Foldout(s_foldTextures, "Remapped Textures");
|
||||
if (s_foldTextures)
|
||||
{
|
||||
DrawRemapGUI<UnityEngine.Texture2D>(importer, GltfTextureEnumerator.Enumerate(parser.GLTF).Select(x => x.ConvertedName));
|
||||
DrawRemapGUI<UnityEngine.Texture2D>(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"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user