public void ExportMaterialMToon(Material src, MToonMaterial mtoon, List <Texture> textures) { if (!Storage.Gltf.extensionsUsed.Contains(UnlitMaterial.ExtensionName)) { Storage.Gltf.extensionsUsed.Add(UnlitMaterial.ExtensionName); } var material = mtoon.MToonToGltf(textures); Storage.Gltf.materials.Add(material); if (!Storage.Gltf.extensionsUsed.Contains(MToonMaterial.ExtensionName)) { Storage.Gltf.extensionsUsed.Add(MToonMaterial.ExtensionName); } }
public void ExportMaterialMToon(Material src, MToonMaterial mtoon, List <Texture> textures) { if (!Gltf.ExtensionsUsed.Contains(UnlitMaterial.ExtensionName)) { Gltf.ExtensionsUsed.Add(UnlitMaterial.ExtensionName); } var material = mtoon.MToonToGltf(src.Name, textures); Gltf.Materials.Add(material); if (!Gltf.ExtensionsUsed.Contains(MToonMaterial.ExtensionName)) { Gltf.ExtensionsUsed.Add(MToonMaterial.ExtensionName); } }