The pack
flare3d
function flare3d(opts: Flare3dOptions = {}): Pack<{ flare: Flare3dApi }>
The flare-3d pack: a procedural lens flare on the sun, depth-occluded, drawn last because a flare lives
ON the lens rather than in the world. Requires a 3D world and render-3d.
Types
Flare3dApi
interface Flare3dApi
game.flare.
strength: number— Overall brightness, live.enabled: boolean— Turn it off entirely.readonly visible: boolean— Whether the sun is on screen and unoccluded enough to be drawing.
Flare3dOptions
interface Flare3dOptions
How the flare looks. Every field is live.
strength?: number— Overall brightness. Default 1.enabled?: boolean— Whether the pass runs at all. Default true.


