RemapEditorBase に externalObjectMap を保持しない

This commit is contained in:
ousttrue
2021-06-21 14:15:48 +09:00
parent e04ac65bf5
commit 21d0ce714e
9 changed files with 28 additions and 53 deletions

View File

@@ -22,18 +22,12 @@ namespace VRMShaders
public static void ConfigureNormalMap(Texture texture, TextureImporter textureImporter)
{
#if VRM_DEVELOP
Debug.Log($"{texture} => normalmap");
#endif
textureImporter.textureType = TextureImporterType.NormalMap;
textureImporter.SaveAndReimport();
}
public static void ConfigureLinear(Texture texture, TextureImporter textureImporter)
{
#if VRM_DEVELOP
Debug.Log($"{texture} => linear");
#endif
textureImporter.sRGBTexture = false;
textureImporter.SaveAndReimport();
}