Glass Threads
Pro
A polished glass-thread background with layered highlights, subtle refraction, and controls for facet scale, shine, and colors.
Code
Usage
<ShaderGlassThreads
refractionDrift={0.3}
facetScale={5.5}
highlightStrength={0.72}
glassBaseColor="#08121a"
threadColor="#94e0f2"
glintColor="#fae09e"
/>Props
| prop | type | default | description |
|---|---|---|---|
refractionDrift | number | 0.3 | Controls refraction. |
facetScale | number | 5.5 | Controls facet scale. |
highlightStrength | number | 0.72 | Controls highlight. |
opacity | number | 0.92 | Sets the overall opacity of the shader background wrapper. |
maxDpr | number | 1.5 | Caps device pixel ratio for sharper output without runaway GPU cost. |
maxFps | 30 | 45 | 60 | 60 | Caps the animation frame rate for performance-sensitive pages. |
glassBaseColor | string | "#08121a" | Sets the glass base color. CSS colors and normalized RGB strings are supported. |
threadColor | string | "#94e0f2" | Sets the thread highlight color. CSS colors and normalized RGB strings are supported. |
glintColor | string | "#fae09e" | Sets the glint highlight color. CSS colors and normalized RGB strings are supported. |