Four ridge layers generated once on the CPU from CultMath value-noise fbm, each painted once to an integer-size 2D canvas over a baked sky; CSS translate3d drift only. Pauses hidden / reduced motion; falls back to a still image if rAF p95 > 33 ms over 2 s; ?probe=1 shows median/p95. Same createScene contract, tier flag still defaults off. Ray-march scene stays behind backgroundScene.style = 'raymarch'. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
12 lines
675 B
TypeScript
12 lines
675 B
TypeScript
// Standalone page for the ridge scene: full window, no host app. `?tier=still|low|full` picks the
|
|
// tier, `?probe=1` shows the rAF median/p95 readout. Not shipped.
|
|
import { startBackgroundScene } from '../../src/app/features/scene';
|
|
import type { SceneTier } from '../../src/app/features/scene';
|
|
|
|
const q = new URLSearchParams(location.search);
|
|
const tier = (q.get('tier') ?? 'full') as SceneTier;
|
|
const canvas = document.getElementById('c') as HTMLCanvasElement;
|
|
startBackgroundScene({ tier }, {}, { canvas }).then((scene) => {
|
|
(window as unknown as { scene: unknown }).scene = scene;
|
|
document.title = scene ? 'ridge: running' : 'ridge: unavailable (CSS ground)';
|
|
});
|