Merge pull request #1440 from Person2099/fix/filament-override-ams-mapping-dispatch

fix: compute AMS mapping from force-colour overrides when 3MF reqs unavailable
This commit is contained in:
Seb
2026-05-20 11:25:45 +02:00
committed by GitHub
parent d3f0e9ac73
commit 14919a80a5
8 changed files with 360 additions and 10 deletions
@@ -106,7 +106,7 @@ export const EFFECT_OVERLAYS: Partial<
Record<FilamentEffect, (effectSeed?: number, effectSize?: SwatchType) => EffectLayer>
> = {
// Sparkle: bright flecks — positions seeded from spool color+extracolors+subtype+effectType.
// to give identical spools the same sparkle pattern while different spools get different patterns.
// to give identical spools the same sparkle pattern while different spools get different patterns.
sparkle: (spoolSeed = 0, effectSize = 'table') => {
const rand = random_mulberry32(spoolSeed);
const preset = SWATCH_TYPE_PRESETS[effectSize] ?? SWATCH_TYPE_PRESETS.table;