Repository navigation
fix(webgpu): Blend acrylic luminosity and tint layers instead of overlaying them - #26290
MartinZikmund wants to merge 2 commits into
Conversation
…laying them The acrylic backdrop composite mixed the luminosity colour over the blurred backdrop as plain SrcOver and drew the tint as a separate SrcOver quad. With the dark in-app acrylic's 0.96 luminosity opacity that hid the backdrop behind a flat grey slab. Apply the Luminosity and Color blends from the acrylic effect graph in the composite shader, matching the Skia backend. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2yWM6tTnT3RcHvzek
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
This pull request is closed, so it cannot be queued. Reopen it to get the box back. |
|
Claude finished @MartinZikmund's task in 23s —— View job Review summaryVerdict: ship. One nit and no blocking issues.
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 245235 found UI Test snapshots differences: Details
|
GitHub Issue: internal (found while preparing the Uno Platform 7.0 Drawing Backends marketing sample)
PR Type:
🐞 Bugfix
What changed? 🚀
On the WebGPU backend,
AcrylicBrushlost its see-through look. The acrylic composite shader mixed the luminosity colour over the blurred backdrop as plain SrcOver (mix(backdrop, lum.rgb, lum.a)), and the tint was drawn as a separate SrcOver quad. With the dark theme'sAcrylicInAppFillColorDefaultBrush(TintLuminosityOpacity = 0.96), that painted a nearly opaque flat grey slab over the blur.The acrylic effect graph is actually
Color(tint) ∘ Luminosity(lumColor) ∘ Blur(backdrop), and the Skia backend already renders it that way. This PR makes the WebGPU composite shader apply the real blend modes:m0slot, so the separate SrcOver tint draw (DrawBackdropTint) is gone. That saves one draw per backdrop as a bonus.#302727(flat grey)PR Checklist ✅
Given_AcrylicBrush.When_AcrylicBrush_Over_Saturated_Background_Dark_Theme. It fails on WebGPU without the fix (#FF302727) and passes on both Skia and WebGPU with it. All 6Given_AcrylicBrushtests pass locally on both backends (Windows desktop, RTX 4090 / Vulkan).Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNu2yWM6tTnT3RcHvzek