Any shader family as the 3D model backdrop

The uber-shader pass is now reusable (_renderUber): choosing 'fam:<i>'
in the Sfondo Modello 3D selector renders that family first (tinted with
the active preset's palette/hue/sat) and overlays the model on top. The
selector lists every family except fluids (already explicit options),
interactive and Modello 3D itself.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
lucianoandClaude Fable 5 committed 2026-07-31 11:03:55 +02:00
1 parent b45c7078dc
commit 83fc655219
3 files changed
+31 -2

No files matched your search

+10
View File
@@ -157,7 +157,17 @@ function glbLabel(name) {
: 'Il modello ruota a tempo di musica nella famiglia “Modello 3D”.';
}
if (glbPath) glbLabel(glbPath.split('/').pop());
// every shader family can be a backdrop too (fluid/interactive/3D excluded:
// fluids are the explicit options above, the others can't render as layers)
EFFECTS.families.forEach((name, fi) => {
if (/^Interattivo|^Modello 3D|^Fluido/.test(name)) return;
const o = document.createElement('option');
o.value = 'fam:' + fi;
o.textContent = name;
$('#glb-bg').appendChild(o);
});
$('#glb-bg').value = glbBg;
if (!$('#glb-bg').value) { glbBg = 'gradient'; $('#glb-bg').value = 'gradient'; }
$('#glb-bg').addEventListener('change', (e) => {
glbBg = e.target.value;
localStorage.setItem('glbbg', glbBg);