Fix premultiplied-alpha double-multiply crushing filter passband shading (#3294). Principle VIII.#3297
Merged
Merged
Conversation
…ing (#3294). Principle VIII. The GPU overlay compositor (m_ovPipeline) samples premultiplied QImages (Format_RGBA8888_Premultiplied) and overlay.frag emits the texel as-is, but the pipeline blend used srcColor = SrcAlpha — multiplying the already- premultiplied texel by alpha a second time (color × alpha squared). This crushed the passband fill (alpha 35/255: intended 13.7% -> actual 1.9%) below the visible floor while the brighter filter edge lines (alpha 130/255: 51% -> 26%) survived — an exact match for the reported symptom (fill gone, edges still toggle). Correct premultiplied compositing uses srcColor = One. Scope: applied to m_ovPipeline only. The FFT fill/line pipelines (m_fftFillPipeline / m_fftLinePipeline) keep SrcAlpha because they source from non-premultiplied baked vertex colors. The opaque bg quad (alpha=255) is unaffected since SrcAlpha == One at full alpha. Evidence-driven diagnosis: the fill-vs-edge survival ratio matches an alpha-squared double-multiply numerically; shading draw code is byte-for-byte unchanged since v26.5.3, and the symptom is GPU-path-only (software QPainter SourceOver does correct premultiplied math). Blast radius: local edit — single blend-factor enum inside the private initOverlayPipeline() helper (one call site). No public signature, member layout, or cross-TU symbol change; flagged high-betweenness callers (MainWindow construct/wire paths) do not depend on internal GPU blend setup. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Closed
2 tasks
Collaborator
|
Color change goes against previous comment about vertex fills. Holding until I can test. |
jensenpat
approved these changes
Jun 2, 2026
jensenpat
left a comment
Collaborator
There was a problem hiding this comment.
Shader fix for passband contrast.
2 tasks
Merged
9 tasks
2 tasks
G6PWY-Chris
pushed a commit
to G6PWY-Chris/AetherSDR
that referenced
this pull request
Jun 22, 2026
…ing (aethersdr#3294). Principle VIII. (aethersdr#3297) ## Summary Fixes aethersdr#3294 ### What was changed Fix premultiplied-alpha double-multiply crushing filter passband shading (aethersdr#3294). Principle VIII. ### Files modified - `src/gui/SpectrumWidget.cpp` ``` src/gui/SpectrumWidget.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) ``` --- Generated by AetherClaude (automated agent for AetherSDR) --- <sub>🤖 aethersdr-agent · cost: $5.5714 · model: claude-opus-4-8</sub> Co-authored-by: aethersdr-agent[bot] <273844287+aethersdr-agent[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes #3294
What was changed
Fix premultiplied-alpha double-multiply crushing filter passband shading (#3294). Principle VIII.
Files modified
src/gui/SpectrumWidget.cppGenerated by AetherClaude (automated agent for AetherSDR)
🤖 aethersdr-agent · cost: $5.5714 · model: claude-opus-4-8