Add the Prismatic Backdrop holographic effect for cutout artwork

The new mythic effect works on two levels. An opaque iridescent film is
painted under the artwork and only shows through its transparent areas,
while a light overlay makes the whole card shine. Both follow the card
tilt without any running animation, like the Diffraction Sheen.

Cards can declare cutout versions of their artwork with the __cutout
suffix: cutoutImage for the standard format and fullCutoutImage for the
full-art format. The catalog only accepts the format's own image name
followed by __cutout. Prismatic Backdrop finishes use them when present
and fall back to the opaque artwork otherwise. The Mythic Card Pull gets
both cutout versions, and the admin visual lab previews the effect on them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-08 21:33:35 +01:00
parent 24992e5502
commit bd1da42c7f
9 changed files with 76 additions and 7 deletions

View file

@ -124,6 +124,12 @@ export function validateCardsCatalog(catalog) {
if (!card.description || card.description.length > 200) throw new TypeError(`Card ${card.id} description must contain 1 to 200 characters.`);
if (card.image != null && !CARD_IMAGE_PATTERN.test(card.image)) throw new TypeError(`Card ${card.id} image must use a canonical WebP path.`);
if (card.fullImage != null && !CARD_IMAGE_PATTERN.test(card.fullImage)) throw new TypeError(`Card ${card.id} full image must use a canonical WebP path.`);
// Illustrations à zones vides : même fichier que l'illustration de leur format, suffixé `__cutout`, pour les effets à sous-couche.
for (const [cutoutKey, imageKey, label] of [["cutoutImage", "image", "image"], ["fullCutoutImage", "fullImage", "full image"]]) {
if (card[cutoutKey] != null && (!card[imageKey] || card[cutoutKey] !== card[imageKey].replace(/\.webp$/, "__cutout.webp"))) {
throw new TypeError(`Card ${card.id} ${cutoutKey === "cutoutImage" ? "cutout" : "full cutout"} image must be its ${label} suffixed with __cutout.`);
}
}
}
for (const edition of catalog.editions) {