glowSpot
A soft oval glow over an offset you have already scaled, the core of a bloom or a glare.
glowSpot(du: Expr, dv: Expr, sharpness: Expr): Expr
Import light from shaders/std and use light.glowSpot.
Returns a 0–1 field. Divide each axis of the offset by its own radius first: du and dv at different radii make the glow oval. sharpness larger gives a tighter glow.
Parameters
| Name | Type | Notes |
|---|---|---|
du | Expr | |
dv | Expr | |
sharpness | Expr |
Example
const pool = glowSpot(div(dx, p('width')), div(dy, p('height')), 2)
See also
glowAt— A soft round glow at a position on the canvas.glowPoint— A soft glow at the center of a radial frame with no hard edge.beamBloom— The soft pool of light at the start of a beam, with a wider faint shoulder around it.