public static GltfTextureInfo[] GetTextures(this GltfMaterial m) { return(new GltfTextureInfo[] { m.pbrMetallicRoughness.baseColorTexture, m.pbrMetallicRoughness.metallicRoughnessTexture, m.normalTexture, m.occlusionTexture, m.emissiveTexture }); }
public static bool IsUnlit(this GltfMaterial m) { return(m.extensions != null && m.extensions.KHR_materials_unlit != null); }