import { createProductionEnvironmentLightingResources, createProductionPbrHdrPipelineFromRadiance, parseProductionRadianceHDR } from "../PBRHDRPipeline.js";
export function loadProductionHdrEnvironment(buffer, options = {}) {
    const id = options.id ?? "production-runtime-radiance-hdr-environment";
    const label = options.label ?? id;
    const pipeline = createProductionPbrHdrPipelineFromRadiance(buffer, {
        ...options,
        id,
        label
    });
    const resources = createProductionEnvironmentLightingResources(pipeline);
    return {
        id: pipeline.id,
        label: pipeline.label,
        radiance: pipeline.radiance,
        pipeline,
        lighting: resources.lighting,
        resources,
        dispose: () => resources.dispose()
    };
}
export { parseProductionRadianceHDR as parseRadianceHDR };
//# sourceMappingURL=HDRLoader.js.map