Build my website from Motion3D "Pelagic Glass — Subsurface Caustics WebGL2 Shader" (https://motion3d.dev/works/pelagic-glass/): unpack the standalone ZIP into ./site, keep the 60fps WebGL / GLSL + HTML5 motion skeleton intact, and swap copy, logo & palette for my brand原創設計理念
Pelagic Glass (Nereid Optics Lab · Study 04) delivers museum-grade subsurface ocean caustics as a drop-in, zero-texture WebGL2 background canvas with ultra-low GPU overhead and a hidden exhibition HUD.
色彩系統(點擊複製 Hex)
版面架構與區塊拆解
Full-bleed 100vw × 100vh WebGL2 canvas with a hidden-by-default optical telemetry drawer (toggled via H key) exposing loop phase, refraction gain, and swell pace controls.
動態編排與前端工程棧
Custom multi-pass WebGL2 GLSL fragment shader with periodic 10s closed-orbit domain warping, FBO optical bloom, spring-damped pointer wake distortion, DPR clamping, and clean visibilitychange/kino:pause rAF halting.
工程實作重點與避坑指南
- Evaluate time along a closed 2π trigonometric orbit so the 10-second loop wraps with zero seam or jump.
- Clamp devicePixelRatio to 2 and pause rAF cleanly on document.hidden or kino:pause to preserve laptop battery.
- Keep the studio HUD strictly hidden on initial paint so the canvas embeds cleanly as a hero background.
Performance, Mobile Fallback & AI Customization Specs
Pelagic Glass (WebGL 著色器 · 3D 與互動工藝, Motion3D craft score 9.4/10) ships as a zero-build, self-contained dark cinematic contrast architecture across 9 source files (27.5 KB ZIP) powered by WebGL / GLSL / HTML5 with 零 CDN 本機離線相依函式庫. Primary interactive behaviors include Cursor & Physics, GLSL 著色器, anchored on calibrated color tokens (Abyssal Trench (#01131A), Pelagic Midnight (#042832), Shallow Skylight Teal (#0A424E), Subsurface Veil (#2F7A86)).
- 60fps GPU Hygiene & Resize Resilience: Pixel ratio clamping, debounced resize listeners, and GPU-composited transforms keep frame pacing steady across Retina displays without leaking WebGL contexts or stalling main-thread scroll.
- Mobile & Reduced-Motion Graceful Degradation: Touch viewports automatically simplify hover-only physics into responsive tap/scroll interactions while respecting
prefers-reduced-motionand preserving clean typography hierarchy. - Zero-Drift AI Re-Skinning: Feed the bundled 7093-character production prompt into Claude Code, Cursor, OpenAI Codex, Antigravity, or Vercel v0—or connect Motion3D MCP (
npx -y motion3d-mcp)—so your agent edits content and CSS variables without breaking shader uniforms or camera damping. - Free Shadcn Registry CLI Install: Pull this permanently free blueprint directly into your codebase with
npx shadcn@latest add https://motion3d.dev/r/pelagic-glass.json(index: /r/registry.json).
Frequently Asked Questions About Pelagic Glass
Can I preview Pelagic Glass live and use it in commercial client websites?
Yes. Pelagic Glass is permanently free ($0, zero login required) with a 1:1 live browser preview, direct standalone ZIP download (9 files, 27.5 KB), zero-key MCP install, and Shadcn Registry CLI (npx shadcn@latest add https://motion3d.dev/r/pelagic-glass.json). It carries a full commercial license for personal, startup, and paid client agency builds with no attribution required.
What tech stack, bundle size, and mobile fallback does Pelagic Glass use?
Pelagic Glass is engineered with WebGL / GLSL / HTML5 across 9 clean source files (27.5 KB ZIP with 零 CDN 本機離線相依函式庫). It targets smooth 60fps desktop rendering with bounded devicePixelRatio scaling, responsive viewport resize handling, touch-friendly interaction fallbacks on mobile devices, and zero external CDN breakage.
How do I customize Pelagic Glass with Claude Code, Cursor, Codex, or Vercel v0?
Unpack the standalone ZIP (or pull via official MCP `npx -y motion3d-mcp` / `npx shadcn@latest add https://motion3d.dev/r/pelagic-glass.json`), then hand your AI coding agent the included 7093-character production prompt alongside your brand copy and target palette tokens. Preserve the core WebGL / GLSL / HTML5 motion skeleton while replacing typography, imagery, and CTA routes—or wrap the module cleanly inside Next.js, React, Vue, or Astro.