Frost
MITPhotoreal 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';23export default function Demo() {4 return (5 <ShaderFrost6 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
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| iceColor | string | "#0597fc" | Ice Color |
| ambient | number | 0 | Ambient |
| edgeSoftness | number | 0.05 | Edge Softness |
| density | number | 5 | Density |
| absorption | number | 1 | Absorption |
| scatter | number | 0.5 | Scatter |
| frostAmount | number | 0.8 | Frost |
| frostDepth | number | 0.4 | Frost 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.