export function adaptGLTFMaterial(material, id = material.name ?? 'gltf-material') {
    const factor = material.pbrMetallicRoughness?.baseColorFactor ?? [1, 1, 1, 1];
    return { id, name: material.name ?? id, baseColorFactor: [Number(factor[0] ?? 1), Number(factor[1] ?? 1), Number(factor[2] ?? 1), Number(factor[3] ?? 1)], metallicFactor: material.pbrMetallicRoughness?.metallicFactor ?? 1, roughnessFactor: material.pbrMetallicRoughness?.roughnessFactor ?? 1, alphaMode: material.alphaMode ?? 'OPAQUE', doubleSided: material.doubleSided ?? false, textures: {}, extensions: Object.keys(material.extensions ?? {}) };
}
//# sourceMappingURL=GLTFMaterialAdapter.js.map