glowPoint
A soft glow at the center of a radial frame with no hard edge.
glowPoint(slots: {sharpness: ArgSpec}): LightPart
Import light from shaders/std and use light.glowPoint.
Returns a 0–1 field, 1 at the center. sharpness is one over the radius squared, so a larger value gives a tighter glow: for a glow that reaches radius r, pass 1 / (r * r).
Parameters
| Name | Type | Notes |
|---|---|---|
slots | {sharpness: ArgSpec} |
Example
coverage: withFrame(radialFrame(p('center')), glowPoint({sharpness: 8}))
Tip. Sharpness is not a radius. Turning it up makes the glow smaller.
See also
featherMask— A round mask that is solid inside a radius and fades out at its edge.emitterFalloff— How light spilling from an emitter dims with distance, with a long realistic tail.glowAt— A soft round glow at a position on the canvas.