Installation
Choose your framework. The registry installs the component and its runtime dependency.
Installation unavailable
The preview is public, but its installable release is still being prepared.
The registry command writes the component to src/lib/components/ui/Glass3DLogo.svelte and installs its dependencies.
The registry command writes the component to src/components/ui/Glass3DLogo.tsx and installs its dependencies.
The registry command writes the component to src/components/ui/Glass3DLogo.vue and installs its dependencies.
Basic usage
The shader fills its parent. Your layout decides whether that parent is a card, hero, or viewport.
Component API
Types below match the selected Svelte component.
Additional classes for the parent-sized root element.
- Type
string
Filled SVG shapes converted into a rounded, closed glass solid.
- Type
string- Range / values
Inline SVG, URL, or data URL
Size of the glass solid within the container.
- Type
number- Default
0.7- Range / values
0.3–1.4
Thickness of the straight side walls, before adding the rounded edges.
- Type
number- Default
0.11- Range / values
0.015–0.35
Radius of the contour corners and the front-to-wall transitions.
- Type
number- Default
0.022- Range / values
0–0.04
Transmission tint, deepening as light travels farther through the solid.
- Type
string- Default
"#57BDE3"
Optical density controlling bending and surface reflection.
- Type
number- Default
1.48- Range / values
1.01–2.2
Softness of reflected studio lights.
- Type
number- Default
0.055- Range / values
0.01–0.5
How strongly the glass tint builds with thickness.
- Type
number- Default
3- Range / values
0–12
Separation of color at refracting edges.
- Type
number- Default
0.3- Range / values
0–3
Strength of the colored surface coating.
- Type
number- Default
0.08- Range / values
0–1
Thickness of the iridescent coating in micrometers.
- Type
number- Default
0.38- Range / values
0.1–0.9
Color of the broad fill lights and background pools.
- Type
string- Default
"#41D4E3"
Brightness of the reflected and transmitted studio lights.
- Type
number- Default
1.3- Range / values
0–3
Rotation of the studio reflections around the object.
- Type
number- Default
20- Range / values
-180–180
Base color beneath the studio light pools.
- Type
string- Default
"#070C0F"
Applies a filmic contrast curve to colors and highlights.
- Type
boolean- Default
true
Locks vertical rotation at the current angle while allowing horizontal orbit.
- Type
boolean- Default
false
Automatic rotation in degrees per second. A released spin eases into this speed in the direction of the gesture.
- Type
number- Default
12- Range / values
0–120
Height of the gentle up-and-down motion relative to the container.
- Type
number- Default
0- Range / values
0–0.08
Up-and-down cycles per second. Set to zero to stop floating.
- Type
number- Default
0.16- Range / values
0–0.6
Stops the render loop while keeping the current frame visible.
- Type
boolean- Default
false
Drag to orbit the glass. Automatic rotation continues when interaction is disabled.
- Type
boolean- Default
true- Range / values
true, false
Caps render resolution independently from the element size.
- Type
number- Default
2- Range / values
1–3
Scales GPU resolution without changing layout dimensions.
- Type
number- Default
1- Range / values
0.25–1
Runs after the shader is mounted successfully, including a WebGL fallback.
- Type
(backend: ShaderBackend) => void- Range / values
webgpu, webgl
Runs when automatic initialization changes the requested WebGPU backend to WebGL.
- Type
(backend: ShaderBackend, reason: string) => void- Range / values
webgl
Reports source-loading or renderer failures so the host application can decide how to recover.
- Type
(error: Error) => void
Exposes the imperative component lifecycle methods.
- Type
Component public instance- Range / values
pause, resume, reset, resize, destroy
Types below match the selected React component.
Additional classes for the parent-sized root element.
- Type
string
Filled SVG shapes converted into a rounded, closed glass solid.
- Type
string- Range / values
Inline SVG, URL, or data URL
Size of the glass solid within the container.
- Type
number- Default
0.7- Range / values
0.3–1.4
Thickness of the straight side walls, before adding the rounded edges.
- Type
number- Default
0.11- Range / values
0.015–0.35
Radius of the contour corners and the front-to-wall transitions.
- Type
number- Default
0.022- Range / values
0–0.04
Transmission tint, deepening as light travels farther through the solid.
- Type
string- Default
"#57BDE3"
Optical density controlling bending and surface reflection.
- Type
number- Default
1.48- Range / values
1.01–2.2
Softness of reflected studio lights.
- Type
number- Default
0.055- Range / values
0.01–0.5
How strongly the glass tint builds with thickness.
- Type
number- Default
3- Range / values
0–12
Separation of color at refracting edges.
- Type
number- Default
0.3- Range / values
0–3
Strength of the colored surface coating.
- Type
number- Default
0.08- Range / values
0–1
Thickness of the iridescent coating in micrometers.
- Type
number- Default
0.38- Range / values
0.1–0.9
Color of the broad fill lights and background pools.
- Type
string- Default
"#41D4E3"
Brightness of the reflected and transmitted studio lights.
- Type
number- Default
1.3- Range / values
0–3
Rotation of the studio reflections around the object.
- Type
number- Default
20- Range / values
-180–180
Base color beneath the studio light pools.
- Type
string- Default
"#070C0F"
Applies a filmic contrast curve to colors and highlights.
- Type
boolean- Default
true
Locks vertical rotation at the current angle while allowing horizontal orbit.
- Type
boolean- Default
false
Automatic rotation in degrees per second. A released spin eases into this speed in the direction of the gesture.
- Type
number- Default
12- Range / values
0–120
Height of the gentle up-and-down motion relative to the container.
- Type
number- Default
0- Range / values
0–0.08
Up-and-down cycles per second. Set to zero to stop floating.
- Type
number- Default
0.16- Range / values
0–0.6
Stops the render loop while keeping the current frame visible.
- Type
boolean- Default
false
Drag to orbit the glass. Automatic rotation continues when interaction is disabled.
- Type
boolean- Default
true- Range / values
true, false
Caps render resolution independently from the element size.
- Type
number- Default
2- Range / values
1–3
Scales GPU resolution without changing layout dimensions.
- Type
number- Default
1- Range / values
0.25–1
Runs after the shader is mounted successfully, including a WebGL fallback.
- Type
(backend: ShaderBackend) => void- Range / values
webgpu, webgl
Runs when automatic initialization changes the requested WebGPU backend to WebGL.
- Type
(backend: ShaderBackend, reason: string) => void- Range / values
webgl
Reports source-loading or renderer failures so the host application can decide how to recover.
- Type
(error: Error) => void
Exposes the imperative component lifecycle methods.
- Type
Glass3DLogoHandle- Range / values
pause, resume, reset, resize, destroy
Types below match the selected Vue component.
Additional classes for the parent-sized root element.
- Type
string
Filled SVG shapes converted into a rounded, closed glass solid.
- Type
string- Range / values
Inline SVG, URL, or data URL
Size of the glass solid within the container.
- Type
number- Default
0.7- Range / values
0.3–1.4
Thickness of the straight side walls, before adding the rounded edges.
- Type
number- Default
0.11- Range / values
0.015–0.35
Radius of the contour corners and the front-to-wall transitions.
- Type
number- Default
0.022- Range / values
0–0.04
Transmission tint, deepening as light travels farther through the solid.
- Type
string- Default
"#57BDE3"
Optical density controlling bending and surface reflection.
- Type
number- Default
1.48- Range / values
1.01–2.2
Softness of reflected studio lights.
- Type
number- Default
0.055- Range / values
0.01–0.5
How strongly the glass tint builds with thickness.
- Type
number- Default
3- Range / values
0–12
Separation of color at refracting edges.
- Type
number- Default
0.3- Range / values
0–3
Strength of the colored surface coating.
- Type
number- Default
0.08- Range / values
0–1
Thickness of the iridescent coating in micrometers.
- Type
number- Default
0.38- Range / values
0.1–0.9
Color of the broad fill lights and background pools.
- Type
string- Default
"#41D4E3"
Brightness of the reflected and transmitted studio lights.
- Type
number- Default
1.3- Range / values
0–3
Rotation of the studio reflections around the object.
- Type
number- Default
20- Range / values
-180–180
Base color beneath the studio light pools.
- Type
string- Default
"#070C0F"
Applies a filmic contrast curve to colors and highlights.
- Type
boolean- Default
true
Locks vertical rotation at the current angle while allowing horizontal orbit.
- Type
boolean- Default
false
Automatic rotation in degrees per second. A released spin eases into this speed in the direction of the gesture.
- Type
number- Default
12- Range / values
0–120
Height of the gentle up-and-down motion relative to the container.
- Type
number- Default
0- Range / values
0–0.08
Up-and-down cycles per second. Set to zero to stop floating.
- Type
number- Default
0.16- Range / values
0–0.6
Stops the render loop while keeping the current frame visible.
- Type
boolean- Default
false
Drag to orbit the glass. Automatic rotation continues when interaction is disabled.
- Type
boolean- Default
true- Range / values
true, false
Caps render resolution independently from the element size.
- Type
number- Default
2- Range / values
1–3
Scales GPU resolution without changing layout dimensions.
- Type
number- Default
1- Range / values
0.25–1
Runs after the shader is mounted successfully, including a WebGL fallback.
- Type
(backend: ShaderBackend) => void- Range / values
webgpu, webgl
Runs when automatic initialization changes the requested WebGPU backend to WebGL.
- Type
(backend: ShaderBackend, reason: string) => void- Range / values
webgl
Reports source-loading or renderer failures so the host application can decide how to recover.
- Type
(error: Error) => void
Exposes the imperative component lifecycle methods.
- Type
Component public instance- Range / values
pause, resume, reset, resize, destroy