Godrays

Volumetric light rays emanating from a point

Props

  • center

    The center point of the god rays

    Type
    {x: number, y: number}
    Default
    {"x":0,"y":0}
  • density

    Frequency of ray sectors

    Type
    number
    Default
    0.3
  • intensity

    Ray visibility within sectors

    Type
    number
    Default
    0.8
  • spotty

    Density of spots on rays (higher = more spots)

    Type
    number
    Default
    1
  • speed

    Animation speed of the rays

    Type
    number
    Default
    0.5
  • rayColor

    Color of the light rays

    Type
    string
    Default
    #4283fb
  • backgroundColor

    Background color

    Type
    string
    Default
    transparent

Usage

<Shader>
  <Godrays
    intensity={0.8}
  />
</Shader>