Documentation

LensFlare

Realistic camera lens flare with artifacts.

Props

lightPosition{x: number, y: number}
Default:{"x":0.3,"y":0.3}
Position of the light source
intensitynumber
Default:0.5
Master brightness of the entire lens flare effect
ghostIntensitynumber
Default:0.4
Brightness of internal reflection ghost discs along the flare axis
ghostSpreadnumber
Default:0.7
Spacing between ghost reflections along the flare axis
ghostChromanumber
Default:0.3
Rainbow chromatic fringing around ghost element edges
haloIntensitynumber
Default:0.4
Brightness of the circular halo ring from internal reflection
haloRadiusnumber
Default:0.6
Radius of the halo ring
haloChromanumber
Default:0.6
Spectral dispersion on the halo creating rainbow color separation
haloSoftnessnumber
Default:0.8
Thickness and softness of the halo ring
starburstIntensitynumber
Default:0.3
Brightness of diffraction spikes radiating from the light source
starburstPointsnumber
Default:6
Number of starburst spikes (simulates aperture blade count)
streakIntensitynumber
Default:0.15
Brightness of horizontal anamorphic light streak
streakLengthnumber
Default:0.5
Horizontal extent of the anamorphic streak
glareIntensitynumber
Default:0.2
Soft veiling glare that washes out contrast around the light
glareSizenumber
Default:0.5
Size of the soft glare glow
edgeFadenumber
Default:0.2
How much the flare fades when the light source is near the screen edge (0 = no fade, 1 = heavy fade)
speednumber
Default:0.5
Speed of subtle flare shimmer and starburst rotation

Usage

<Shader>
  <LensFlare
    intensity={0.5}
  />
</Shader>