Skip to content

Cap Mask contrast factor at maximum contrast#1067

Merged
jonoomph merged 1 commit into
developfrom
mask-fixes
May 4, 2026
Merged

Cap Mask contrast factor at maximum contrast#1067
jonoomph merged 1 commit into
developfrom
mask-fixes

Conversation

@jonoomph
Copy link
Copy Markdown
Member

@jonoomph jonoomph commented May 3, 2026

-Raise the Mask contrast denominator floor from 0.00001 to 0.5, capping the contrast factor at 40. This prevents contrast values near 20 from turning the 8-bit gray lookup into a one-value step function, where tiny mask image differences can create hard transparent edge artifacts during gradient wipes. -Add a regression test covering the maximum contrast transition band.

-Raise the Mask contrast denominator floor from 0.00001 to 0.5, capping the contrast factor at 40. This prevents contrast values near 20 from turning the 8-bit gray lookup into a one-value step function, where tiny mask image differences can create hard transparent edge artifacts during gradient wipes.
-Add a regression test covering the maximum contrast transition band.
@jonoomph
Copy link
Copy Markdown
Member Author

jonoomph commented May 3, 2026

Ruler Time: Editor

@codecov
Copy link
Copy Markdown

codecov Bot commented May 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.76%. Comparing base (118fc2d) to head (ce560f1).
⚠️ Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1067      +/-   ##
===========================================
+ Coverage    68.25%   68.76%   +0.51%     
===========================================
  Files          235      238       +3     
  Lines        28014    28583     +569     
===========================================
+ Hits         19121    19656     +535     
- Misses        8893     8927      +34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jonoomph jonoomph merged commit 235a5c8 into develop May 4, 2026
9 of 13 checks passed
@jonoomph jonoomph deleted the mask-fixes branch May 4, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant