flareCore

The bright point at the light itself: a hard pinpoint inside a small soft glow.

flareCore(slots: {intensity: ArgSpec}): (flare: Expr, params: GpuFragmentParams) => Expr

Import light from shaders/std and use light.flareCore.

Call the result with the flare frame and the params. Returns an RGB.

Parameters

NameTypeNotes
slots{intensity: ArgSpec}

Example

flareCore({intensity: p('intensity')})(flare, params)

See also

  • flareFrame — The shared frame of a camera lens flare, which every flare* part reads.
  • flareGlare — The broad warm-white wash around the light that lifts contrast near it.

Used by

LensFlare