@@ -436,9 +436,9 @@ be controlled with the `downsample` attribute.
436436### ` !flare `
437437
438438A ` !flare ` filter attempts to emulate the tendency of optical lenses to produce
439- artefacts in the image, including "starbursts" and "ghosts". The filter requires
440- a high dynamic range input (such as output by ` !canvas3d ` ). The filter accepts
441- the following attributes:
439+ artefacts in the image, including "starbursts", "halos" and "ghosts". The filter
440+ requires a high dynamic range input (such as output by ` !canvas3d ` ). The filter
441+ accepts the following attributes:
442442
443443` threshold= ` * L*
444444: A luminosity threshold over which a pixel is deemed to be "bright". Default is
@@ -452,12 +452,23 @@ means one-quarter the luminosity. Default is `2`.
452452` upright_length= ` * LENGTH*
453453: The length of the vertical/horizontal starburst lines, expressed as a
454454multiple of the shorter of the filter width or height. Larger values are more
455- expensive to compute. Default is ` 0.25 ` .
455+ expensive to compute. Default is ` 0.25 ` . Setting this to ` 0 ` disables the
456+ horizontal/vertical starburst lines.
456457
457458` diagonal_length= ` * LENGTH*
458459: The length of the diagonal starburst lines, expressed as a multiple of the
459460shorter of the filter width or height. Larger values are more expensive to
460- compute. Default is ` 0.125 ` .
461+ compute. Default is ` 0.125 ` . Setting this to ` 0 ` disables the diagonal starburst
462+ lines.
463+
464+ ` halo_radius= ` * RADIUS*
465+ : The radius of the halo added on bright spots, expressed as a multiple of the
466+ shorter of the filter width or height. Larger values are more expensive to
467+ compute. Default is ` 0.0625 ` . Setting this to ` 0 ` disables the halo.
468+
469+ ` halo_attenuation= ` * ATTENUATION*
470+ : An additional attenuation to apply to the halo, expressed as a power-of-2.
471+ Default is ` 3 ` .
461472
462473` ghosts= ` * N*
463474: The number of lens ghosts to add, between ` 0 ` and ` 6 ` . The size, location and
@@ -478,6 +489,13 @@ be controlled with the `downsample` attribute. As this filter is very expensive
478489to compute, setting ` downsample=3 ` or ` downsample=4 ` can make a significant
479490difference to GPU load – particularly if the filter ` size ` is large.
480491
492+ :::{note}
493+ Generally, you will want to combine this filter with a [ ` !bloom ` ] ( #bloom ) as the
494+ thresholding and attenuation makes flares localised to the brightest spots. The
495+ order in which these filters are applied will result in subtly different
496+ outputs.
497+ :::
498+
481499### ` !edges `
482500
483501The ` !edges ` node applies a simple edge-detection filter by blurring the input
0 commit comments