Esempio n. 1
0
 public virtual string GetGltfMaterialTypeFromUnityShaderName(string shaderName)
 {
     if (shaderName == "Standard")
     {
         return("pbr");
     }
     if (MaterialExporter.IsUnlit(shaderName))
     {
         return("unlit");
     }
     return(null);
 }
 public static string DefaultGltfMaterialType(string shaderName)
 {
     if (shaderName == "Standard")
     {
         return("pbr");
     }
     if (MaterialExporter.IsUnlit(shaderName))
     {
         return("unlit");
     }
     return(null);
 }