Add the shattered ice effect and five-step tunings for mythic variations
« Glace brisée » joins the holographic effects: a seamless shard mosaic in four facet groups that each light up near their own tilt, with glinting cracks; in the standard layout it covers the frame and text and stays under the artwork. Its masks come from scripts/generate-shattered-ice-textures.mjs. Each mythic variation now tunes its palette intensity and, when the effect declares one, its own level (prism speed, parallax amplitude, shard size), from 1 to 5 with 3 as the reference render. Tunings are stored on mythic_variations, set with range sliders when a variation is created or later in the mythic editor, logged in the history and previewed in the Visual Lab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
efdb5c558c
commit
808adadc0c
23 changed files with 463 additions and 31 deletions
10
website/src/features/cards/admin/effectTuning.js
Normal file
10
website/src/features/cards/admin/effectTuning.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Rôle : valeurs communes des paliers d'une variation mythique (intensité de la palette, palier propre à l'effet), de 1 à 5.
|
||||
export const DEFAULT_TUNING = 3;
|
||||
|
||||
// Un palier central n'est pas transmis : la carte garde son rendu de référence, sans attribut.
|
||||
export function tuningEditionFields(effect, { intensity = DEFAULT_TUNING, level = DEFAULT_TUNING } = {}) {
|
||||
return {
|
||||
...(intensity !== DEFAULT_TUNING ? { holoIntensity: intensity } : {}),
|
||||
...(effect?.level && level !== DEFAULT_TUNING ? { holoLevel: level } : {})
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue