Toggle Sidebar B
Light & dark mode D

Beam

A beam of light from one point to another.

A beam of light from one point to another.

Props

PropTypeDefaultDescription
startPositionposition{"x":0.2,"y":0.5}Starting point of the beam
endPositionposition{"x":0.8,"y":0.5}Ending point of the beam
startThicknessrange0.2Thickness at the start of the beam
endThicknessrange0.2Thickness at the end of the beam
startSoftnessrange0.5Edge softness at the start of the beam
endSoftnessrange0.5Edge softness at the end of the beam
insideColorcolor#FF0000Color at the center of the beam
outsideColorcolor#0000FFColor at the edges of the beam
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for color interpolation

Usage

vue
<Shader>
  <Beam />
</Shader>