Installation
Choose your framework. The registry installs one component file and its PixiJS 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/DragonSkin.svelte and installs its dependencies.
The registry command writes the component to src/components/ui/DragonSkin.tsx and installs its dependencies.
The registry command writes the component to src/components/ui/DragonSkin.vue and installs its dependencies.
Overview
Dragon Skin combines three directional waves across five warped, rotated layers. Sharpened intersections create an animated network of scale-like ridges.
The accumulated height drives the dark red color transition, orange glow, and finite-difference normals used for directional highlights.
Basic usage
The shader fills its parent. Your layout decides whether that parent is a card, hero, or viewport.
- Raise Ridge sharpness for thinner ridges, or lower it for broader scales.
- Set Speed to zero for a static frame. Reduced-motion mode pauses the renderer automatically.
Component API
Types below match the selected Svelte component.
Additional classes for the parent-sized root element.
- Type
string
Color of the darkest areas between the ridges.
- Type
string- Default
"#040103"
Color revealed as the layered ridges rise.
- Type
string- Default
"#380401"
Color emitted by the brightest ridges.
- Type
string- Default
"#FF1F04"
Color of the focused reflection from the virtual light.
- Type
string- Default
"#FFA64D"
Animation speed of the shifting ridge field.
- Type
number- Default
1- Range / values
0–3
Visible scale of the procedural pattern.
- Type
number- Default
1- Range / values
0.2–4
Strength of the recursive directional warp.
- Type
number- Default
1- Range / values
0–3
Frequency growth applied between ridge layers.
- Type
number- Default
3- Range / values
1.1–5
How thin and crisp the glowing ridges are.
- Type
number- Default
6- Range / values
1–16
Intensity of the glow and specular reflection.
- Type
number- Default
1- Range / values
0–3
Horizontal direction of the virtual light in degrees.
- Type
number- Default
40- Range / values
0–360
Height of the virtual light above the surface in degrees.
- Type
number- Default
55- Range / values
0–90
Focus of the specular reflection across the ridges.
- Type
number- Default
48- Range / values
2–80
Darkening applied toward the outer edges.
- Type
number- Default
1- Range / values
0–1
Stops the render loop while keeping the current frame visible.
- Type
boolean- Default
false
Enables pointer-driven effects when the shader supports them.
- Type
boolean- Default
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
Color of the darkest areas between the ridges.
- Type
string- Default
"#040103"
Color revealed as the layered ridges rise.
- Type
string- Default
"#380401"
Color emitted by the brightest ridges.
- Type
string- Default
"#FF1F04"
Color of the focused reflection from the virtual light.
- Type
string- Default
"#FFA64D"
Animation speed of the shifting ridge field.
- Type
number- Default
1- Range / values
0–3
Visible scale of the procedural pattern.
- Type
number- Default
1- Range / values
0.2–4
Strength of the recursive directional warp.
- Type
number- Default
1- Range / values
0–3
Frequency growth applied between ridge layers.
- Type
number- Default
3- Range / values
1.1–5
How thin and crisp the glowing ridges are.
- Type
number- Default
6- Range / values
1–16
Intensity of the glow and specular reflection.
- Type
number- Default
1- Range / values
0–3
Horizontal direction of the virtual light in degrees.
- Type
number- Default
40- Range / values
0–360
Height of the virtual light above the surface in degrees.
- Type
number- Default
55- Range / values
0–90
Focus of the specular reflection across the ridges.
- Type
number- Default
48- Range / values
2–80
Darkening applied toward the outer edges.
- Type
number- Default
1- Range / values
0–1
Stops the render loop while keeping the current frame visible.
- Type
boolean- Default
false
Enables pointer-driven effects when the shader supports them.
- Type
boolean- Default
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
DragonSkinHandle- Range / values
pause, resume, reset, resize, destroy
Types below match the selected Vue component.
Additional classes for the parent-sized root element.
- Type
string
Color of the darkest areas between the ridges.
- Type
string- Default
"#040103"
Color revealed as the layered ridges rise.
- Type
string- Default
"#380401"
Color emitted by the brightest ridges.
- Type
string- Default
"#FF1F04"
Color of the focused reflection from the virtual light.
- Type
string- Default
"#FFA64D"
Animation speed of the shifting ridge field.
- Type
number- Default
1- Range / values
0–3
Visible scale of the procedural pattern.
- Type
number- Default
1- Range / values
0.2–4
Strength of the recursive directional warp.
- Type
number- Default
1- Range / values
0–3
Frequency growth applied between ridge layers.
- Type
number- Default
3- Range / values
1.1–5
How thin and crisp the glowing ridges are.
- Type
number- Default
6- Range / values
1–16
Intensity of the glow and specular reflection.
- Type
number- Default
1- Range / values
0–3
Horizontal direction of the virtual light in degrees.
- Type
number- Default
40- Range / values
0–360
Height of the virtual light above the surface in degrees.
- Type
number- Default
55- Range / values
0–90
Focus of the specular reflection across the ridges.
- Type
number- Default
48- Range / values
2–80
Darkening applied toward the outer edges.
- Type
number- Default
1- Range / values
0–1
Stops the render loop while keeping the current frame visible.
- Type
boolean- Default
false
Enables pointer-driven effects when the shader supports them.
- Type
boolean- Default
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