Function with_glow

Source
pub fn with_glow<T>(draw: impl FnOnce() -> T) -> T
Expand description

Draw immediate primitives (rectangles, circles, lines, text, meshes) with additive blending inside draw, so bright shapes accumulate light and feed the bloom. Equivalent to EffectBlend::Additive for immediate geometry; works with post-processing off as plain additive blending.

use ferravex_render::{input, post, draw_circle, Color};
input::host_frame(1. / 60., 64, 64, || {
    post::with_glow(|| draw_circle(32., 32., 6., Color::new(1., 0.6, 0.2, 0.8)));
});