Repository navigation
LR-MASK-BRUSH: Flow as in Lightroom (process V15): coverage per brush radius travelled #4047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
26a8f4e
LR-MASK-BRUSH: Flow as in Lightroom (process V8): coverage per brush …
dim fb2085c
LR-MASK-BRUSH: GPU equivalence of a Flow 25 brush on process V8 (revi…
dim 66dd334
Merge upstream/main into fix/brush-flow-per-radius; Flow becomes proc…
dim fa79294
Merge remote-tracking branch 'upstream/main' into fix/brush-flow-per-…
dim 70f3f6a
Merge upstream/main into fix/brush-flow-per-radius; Flow becomes prov…
dim 30f80e0
Merge upstream/main into fix/brush-flow-per-radius; Flow becomes proc…
dim d51c3da
Heal: the pinned heal is checked on V14 and every later process, not …
dim 898de52
Merge upstream/main into fix/brush-flow-per-radius
dim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feathered brush dabs make coverage depend on dab spacing under process V12.
Each dab's feather weight multiplies its travel-normalized flow after normalization. The CPU compositor in
accumulate(crates/pipeline/src/masks.rs:749-751) and the GPU kernel (crates/gpu/src/wgsl/mask.wgsl:115) both computea * flow, whereflowcomes fromtravel_flow. The feather weightais outside the travel exponent, so the same path does not compose consistently.At Flow 50 with feather weight 0.5 at a point:
Dabs are spaced at the sample spacing for slow strokes and at about
r/4for fast strokes (crates/pipeline/src/masks.rs:716-729). Feathered coverage therefore changes with drag speed. Hard-core dabs with weight 1 are unaffected.Coverage for a feathered path must equal the coverage of one longer step over the same path, at any dab spacing. Apply the feather weight to the travelled distance, or otherwise preserve that composition, in both the CPU and GPU paths. The current tests use
feather: 0.0, so they do not cover this case.