glass-shard-title

Render iridescent glass shards that assemble into animated headlines with Voronoi tiling.

77.3k|7.1k|Updated Mar 10, 2026
Ready to run
npx skills add https://github.com/heygen-com/hyperframes --skill glass-shard-title-heygen-com
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: glass-shard-title
Source: https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/glass-shard-title
Command: npx skills add https://github.com/heygen-com/hyperframes --skill glass-shard-title-heygen-com

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires three, gsap, d3-delaunay, and includes scripts (resource) and assets (resource) components.

What problem does it solve? This Skill eliminates manual frame-by-frame animation of complex 3D glass effects, enabling cinematic title sequences with physically plausible reflections, refraction, and spatial choreography without requiring a professional 3D artist or rendering farm. ## Core Features & Use Cases - Voronoi Glass Shards: Automatically fragments headlines into organic glass pieces using Delaunay triangulation and Sutherland-Hodgman polygon clipping. - Per-Shard Choreography: Each shard follows seeded, deterministic flight paths with independent rotation, depth, and timing jitter—no two renders are identical, yet all are reproducible. - HDR Lighting & Matcap Sheen: Combines physically-based transmission (iridescence, thickness, dispersion) with environment mapping and additive matcap overlays for photorealistic glass appearance. - Use Case: A fintech startup needs a branded 12-second title card for social media. Instead of hiring a motion graphics studio, use this Skill to render a custom headline (e.g., "Designed in glass") with 8 shards flying in from the sides, pausing for 9 seconds, then flying back out—fully controllable via 19 variables. ## Quick Start Render the glass-shard-title composition with your headline text, adjust the tile count to control shard density, and tweak fly-in time and rotation to match your pacing.

Frequently Asked Questions about glass-shard-title

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control the number of glass shards in the animation?▼

The tileCount variable (range 1–400, default 8) sets the exact number of shards. A count of 1 renders the entire headline as a single pane; higher counts fragment it into smaller pieces. Shard count does not affect performance—all pieces are generated upfront.

Can I customize the headline text and animation timing?▼

Yes. Use the headline variable (max 40 chars) to set text, flyInTime (0.2–6s) to control incoming speed, and flyOutTime for outbound speed. Stagger (0–1) delays each shard's departure to create wave effects; easePow (1–10) shapes the easing curve.

What renders the glass reflections and iridescence?▼

Three.js MeshPhysicalMaterial with transmission=1 handles refraction and Fresnel effects. Iridescence parameters modulate thickness-based color shifts. An HDR environment map and matcap texture provide specular reflections. All surfaces respond to lighting in real time during the animation.

Why does fog distance affect the shard visibility?▼

Per-fragment exponential fog starts just behind the seated plane (FOG_START = CAM_Z - PANE_Z + 0.28) and scales by fog distance. Setting fog to 0 disables it; higher values (up to 400) fade distant shards into the dark background, enhancing depth perception during flight.

Is the shard layout random or reproducible across renders?▼

Layout is fully reproducible. A seeded PRNG (Mulberry32 with fixed seeds) generates Voronoi sites, flight choreography, and rotation jitter. Two renders with identical parameters and headline produce byte-identical outputs—no randomness is resampled per frame.

How do I adjust the silhouette shape and glass surface finish?▼

Chaos (0–1) introduces harmonic perturbations to the headline's outline; padding extends the blob past the glyphs. Roundness (0–1) softens corner bevels; bevel (0–1) controls edge thickness; meshSmooth (0–1) blends hard edges on the extrusion. All parameters are tuned without rebuilding geometry.