mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-08-18 22:42:25 +00:00
- setPixelRatio at last: DPR (cap 2; 1.25 when >1 instance) x host adaptive bundle.renderScale — HiDPI displays were rendering at CSS resolution and upscaling (soft/aliased) - Bloom: port _bloomEnsure/_bloomDispose (UnrealBloomPass 0.65/0.5/0.82, MSAA HalfFloat target, ACES<->None switch); hit-line, flames and consume-glow benefit immediately; direct render is the degrade path - First settings panel: settings.html (graphics category) with a live Glow (bloom) toggle; FX scaffold (FX_DEFAULTS/readFxSettings/ window.keys3dSetFx, keys3d_bg_* keys, keys3d:settings event) - Combo/accuracy/best-streak DOM HUD (drum_highway_3d pattern), gated on a live MIDI session - tests/fx_settings.test.js (3 tests; vm harness) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
48 lines
2.2 KiB
HTML
48 lines
2.2 KiB
HTML
<div role="group" aria-labelledby="keysh3d-heading">
|
|
<h3 id="keysh3d-heading" class="text-sm font-medium text-gray-400 mb-2">3D Keys Highway</h3>
|
|
<p class="text-xs text-gray-500 mb-3">
|
|
Pick a song with keys notation (sloppak-spec §5.3) and choose
|
|
<em>Keys Highway 3D</em> from the viz picker (Auto selects it for
|
|
notation charts). The plugin auto-attaches to your MIDI keyboard;
|
|
device, channel and transpose are configured from the player for
|
|
now — this panel holds the graphics controls.
|
|
</p>
|
|
|
|
<!-- Graphics -->
|
|
<div class="mt-3">
|
|
<h4 class="text-xs font-medium text-gray-300 mb-2">Graphics</h4>
|
|
<label for="keysh3d-fx-bloom" class="flex items-center gap-2 text-xs text-gray-300 cursor-pointer">
|
|
<input type="checkbox" id="keysh3d-fx-bloom" checked
|
|
onchange="window.keys3dSetFx && window.keys3dSetFx('bloom', this.checked)">
|
|
Glow (bloom)
|
|
</label>
|
|
<p class="text-xs text-gray-500 mt-1">
|
|
Soft light-bleed around the hit line, hit flames and consumed
|
|
sustains. Applies live; turn off to reclaim GPU headroom on
|
|
weak machines.
|
|
</p>
|
|
</div>
|
|
|
|
<script>
|
|
(function () {
|
|
'use strict';
|
|
// Hydrate controls from stored config on first paint. Narrow the
|
|
// try/catch to just the localStorage reads (drum_highway_3d
|
|
// settings-hydration convention).
|
|
try {
|
|
// FX toggles (keys3d_bg_* — guitar-parity graphics controls).
|
|
// Only explicit values override; absent/corrupt keys keep the
|
|
// default (ON), matching screen.js readFxSettings.
|
|
const storedBloom = localStorage.getItem('keys3d_bg_bloom');
|
|
if (storedBloom === '1' || storedBloom === 'true') {
|
|
document.getElementById('keysh3d-fx-bloom').checked = true;
|
|
} else if (storedBloom === '0' || storedBloom === 'false') {
|
|
document.getElementById('keysh3d-fx-bloom').checked = false;
|
|
}
|
|
} catch (e) {
|
|
console.warn('[Keys-Hwy3D settings] hydration failed:', e);
|
|
}
|
|
})();
|
|
</script>
|
|
</div>
|