mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-02 15:01:19 -05:00
LR-MASK-BRUSH: the Lens Blur brush preview keeps an Auto Mask stroke's V15 accumulation (review)
This commit is contained in:
@@ -122,9 +122,10 @@ pub(super) fn lens_blur_brush_overlay(app: &mut LightcraftApp, ui: &mut egui::Ui
|
||||
hard: r * (1.0 - (app.ui.brush_feather / 100.0).clamp(0.0, 1.0)),
|
||||
flow: (app.ui.brush_flow / 100.0).clamp(0.0, 1.0),
|
||||
density: (app.ui.lens_blur_brush_amount / 100.0).clamp(0.0, 1.0),
|
||||
// (its strokes render as a mask brush does: Flow per radius travelled from V15, the edge by stroke from V16)
|
||||
// (its strokes render as a mask brush does: Flow per radius travelled from V15, the edge by stroke from V16,
|
||||
// except an Auto Mask stroke, which keeps V15's accumulation as the committed one does)
|
||||
per_radius: lightcraft_pipeline::masks::flow_per_radius(d),
|
||||
by_stroke: lightcraft_pipeline::masks::stroke_feather(d),
|
||||
by_stroke: lightcraft_pipeline::masks::stroke_feather(d) && !app.ui.brush_auto_mask,
|
||||
color: if focus { [70, 200, 120] } else { [230, 70, 70] },
|
||||
opacity: 0.45,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user