Modular Multi-Shader
Load only the shaders you need with automatic switching!
This demo loads GS1 + GS3 for specific combinations.
Three.js + gs-engine.js + morphbg-gs1.bundle.js + morphbg-gs3.bundle.js
Total: ~17KB (vs 25KB for complete bundle)
Load only the shaders you need with automatic switching!
This demo loads GS1 + GS3 for specific combinations.
When multiple shader bundles are loaded, they detect each other and defer initialization to the ScrollShaderManager.
No manual configuration needed – it just works!
Shaders switch automatically based on scroll position with smooth fade effects.
The manager handles all cleanup and initialization.
Each section can specify its own shader and preset combination.
Use data-shader-system="gs1|gs3" and data-bg-preset="HERO|AMBIENT|CALM"
This demo skips GS2 entirely, saving ~7KB of bandwidth.
Perfect for when you want specific shader combinations!
✓ Multi-section landing pages
✓ Specific shader combinations
✓ File size optimization
✓ Progressive enhancement