Beam

A beam of light from one point to another.

Props

  • startPosition

    Starting point of the beam

    Type
    {x: number, y: number}
    Default
    {"x":0.2,"y":0.5}
  • endPosition

    Ending point of the beam

    Type
    {x: number, y: number}
    Default
    {"x":0.8,"y":0.5}
  • startThickness

    Thickness at the start of the beam

    Type
    number
    Default
    0.2
  • endThickness

    Thickness at the end of the beam

    Type
    number
    Default
    0.2
  • startSoftness

    Edge softness at the start of the beam

    Type
    number
    Default
    0.5
  • endSoftness

    Edge softness at the end of the beam

    Type
    number
    Default
    0.5
  • insideColor

    Color at the center of the beam

    Type
    string
    Default
    #FF0000
  • outsideColor

    Color at the edges of the beam

    Type
    string
    Default
    #0000FF
  • colorSpace

    Color space for color interpolation

    Type
    "linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"
    Default
    linear

Usage

<Shader>
  <Beam />
</Shader>