Docs/Fondos

Godrays

MIT

Volumetric light rays emanating from a point

Cargando shader…

Ajústalo

0.3
0.8
1
0.5

Instalación

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

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

Uso

Demo.tsx
1import ShaderGodrays from '@/components/bastard/ShaderGodrays';
2
3export default function Demo() {
4 return (
5 <ShaderGodrays
6 density={0.3}
7 intensity={0.8}
8 spotty={1}
9 speed={0.5}
10 rayColor="#4283fb"
11 />
12 );
13}

Props

PropTipoPor defectoDescripción
densitynumber0.3Density
intensitynumber0.8Intensity
spottynumber1Spotty
speednumber0.5Speed
rayColorstring"#4283fb"Ray Color

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

Créditos

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