Modular Multi-Shader

Load only the shaders you need with automatic switching!

This demo loads GS1 + GS3 for specific combinations.

Shader: GS1 (Topographic Flow) • Preset: HERO
4 Scripts:
Three.js + gs-engine.js + morphbg-gs1.bundle.js + morphbg-gs3.bundle.js
Total: ~17KB (vs 25KB for complete bundle)

Smart Auto-Init

When multiple shader bundles are loaded, they detect each other and defer initialization to the ScrollShaderManager.

No manual configuration needed – it just works!

Shader: GS1 (Topographic Flow) • Preset: AMBIENT

Seamless Transitions

Shaders switch automatically based on scroll position with smooth fade effects.

The manager handles all cleanup and initialization.

Shader: GS3 (Dot Field) • Preset: HERO

Preset Control Per Section

Each section can specify its own shader and preset combination.

Use data-shader-system="gs1|gs3" and data-bg-preset="HERO|AMBIENT|CALM"

Shader: GS3 (Dot Field) • Preset: AMBIENT

Load What You Need

This demo skips GS2 entirely, saving ~7KB of bandwidth.

Perfect for when you want specific shader combinations!

Shader: GS1 (Topographic Flow) • Preset: CALM

Best For

✓ Multi-section landing pages
✓ Specific shader combinations
✓ File size optimization
✓ Progressive enhancement

Shader: GS3 (Dot Field) • Preset: CALM