Docs/Formas

Frost

MIT

Photoreal frozen ice — thickness-driven subsurface scattering that reads as a solid block, with fine frost crystals creeping in from the edges

Cargando shader…

Ajústalo

1
0
0
0.05
5
1
0.5
0.8
0.4

Instalación

Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-frost.json

Crea components/bastard/ShaderFrost.tsx e instala shaders. Más opciones

Uso

Demo.tsx
1import ShaderFrost from '@/components/bastard/ShaderFrost';
2
3export default function Demo() {
4 return (
5 <ShaderFrost
6 scale={1}
7 rotation={0}
8 iceColor="#0597fc"
9 ambient={0}
10 edgeSoftness={0.05}
11 density={5}
12 absorption={1}
13 scatter={0.5}
14 frostAmount={0.8}
15 frostDepth={0.4}
16 />
17 );
18}

Props

PropTipoPor defectoDescripción
scalenumber1Scale
rotationnumber0Rotation
iceColorstring"#0597fc"Ice Color
ambientnumber0Ambient
edgeSoftnessnumber0.05Edge Softness
densitynumber5Density
absorptionnumber1Absorption
scatternumber0.5Scatter
frostAmountnumber0.8Frost
frostDepthnumber0.4Frost Depth

Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.

Créditos

Basado en Frost · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.