import { Geometry } from "../Geometry.js";
import { UnlitMaterial } from "../UnlitMaterial.js";
import { createRendererOwnedEvidenceFlag } from "./CinematicEvidence.js";
export function createGlowCardSystem(cards, id = "cinematic-glow-cards") {
    return {
        id,
        cards,
        renderItems: cards.map((card) => ({
            label: card.id,
            geometry: Geometry.litCube(card.radiusMeters),
            material: new UnlitMaterial({
                name: `cinematic/glow-card/${card.id}`,
                color: card.color,
                renderState: { blend: true, depthWrite: false, cullMode: "none" }
            }),
            includeInAutoFrame: false
        })),
        rendererOwnedEvidence: createRendererOwnedEvidenceFlag({
            id: `vfx:${id}`,
            feature: "vfx",
            label: "Glow card system",
            source: "renderer-vfx",
            diagnostics: ["Glow cards are renderer transparent geometry; DOM halos do not count."]
        }),
        diagnostics: [`Compiled ${cards.length} renderer glow cards.`]
    };
}
//# sourceMappingURL=GlowCardSystem.js.map