flareStreak
The horizontal widescreen streak through the light in a lens flare.
flareStreak(slots: {intensity: ArgSpec; length: ArgSpec}): (flare: Expr, params: GpuFragmentParams) => Expr
Import light from shaders/std and use light.flareStreak.
Call the result with the flare frame and the params. length is the streak's reach in uv. Blue spreads furthest, giving the streak its cyan edges. Returns an RGB.
Parameters
| Name | Type | Notes |
|---|---|---|
slots | {intensity: ArgSpec; length: ArgSpec} |
Example
flareStreak({intensity: p('streakIntensity'), length: p('streakLength')})(flare, params)
See also
flareFrame— The shared frame of a camera lens flare, which everyflare*part reads.streakBand— One soft band across a single coordinate, peaking atcenter.