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

@ -798,7 +798,16 @@ test("administrator navigates sections, manages mythic content and previews visu
expect(Math.abs((mythicBox.x - gridBox.x) - (gridBox.x + gridBox.width - mythicBox.x - mythicBox.width))).toBeLessThanOrEqual(1);
const effectStyles = page.locator(".nebula-admin-effect-grid .nebula-admin-style-card");
await expect(effectStyles.locator("h4")).toHaveText(["Prisme spectral", "Reflet diffractif"]);
await expect(effectStyles.locator("h4")).toHaveText(["Prisme spectral", "Reflet diffractif", "Écrin prismatique"]);
// L'Écrin prismatique affiche la version à zones vides de chaque format : sa sous-couche se voit à travers.
const backdropStyle = effectStyles.filter({ has: page.getByRole("heading", { name: "Écrin prismatique", exact: true }) });
const backdropCard = backdropStyle.locator('.nebula-card[data-holo-effect="prismatic-backdrop"]');
await expect(backdropCard.locator('.nebula-card-art img[src$="/mythic_card_pull__cutout.webp"]')).toBeVisible();
await expect(backdropCard.locator(".nebula-card-art .nebula-card-holo-underlay")).toHaveCSS("display", "block");
await chooseOption(backdropStyle, "Format", "Pleine illustration");
await expect(backdropCard.locator('.nebula-card-art img[src$="/mythic_card_pull__full__cutout.webp"]')).toBeVisible();
await chooseOption(backdropStyle, "Format", "Standard");
await expect(effectStyles.filter({ has: page.getByRole("heading", { name: "Prisme spectral", exact: true }) }).locator(".nebula-card-holo-underlay")).toHaveCount(0);
const spectralStyle = effectStyles.filter({ has: page.getByRole("heading", { name: "Prisme spectral", exact: true }) });
// Les aperçus holographiques gardent le vrai format `lg`, 300 x 420 px.
const holoPreviewBox = await spectralStyle.locator(".nebula-admin-style-preview > .nebula-card").boundingBox();