« 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>
10 lines
541 B
JavaScript
10 lines
541 B
JavaScript
// 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 } : {})
|
|
};
|
|
}
|