export function compilePBRMaterial(material, features = {}) {
    const defines = Object.entries(features).filter(([, enabled]) => enabled).map(([name]) => 'USE_' + name.replace(/[A-Z]/g, (c) => '_' + c).toUpperCase());
    return { key: [material.id, ...defines].join('|'), defines, material };
}
//# sourceMappingURL=MaterialCompiler.js.map