Skip to content

[V3] Use the full-precision tint color in the CPU layer effects - #437

Merged
JimBobSquarePants merged 1 commit into
release/3.1.xfrom
js/v3-effect-tint-precision
Nov 27, 2026
Merged

JimBobSquarePants merged 1 commit into
release/3.1.xfrom
js/v3-effect-tint-precision

Conversation

@JimBobSquarePants

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Back-port of the layer effect tint fix to 3.1.x.

  • The CPU acrylic, drop shadow, backdrop drop shadow, glow and inner shadow effects converted the tint color to Rgba32 before they built the color matrix. That cut the tint to 8 bits for each channel.
  • The CPU effects now use Color.ToScaledVector4(PixelAlphaRepresentation.Unassociated), the same call as the WebGPU effects.
  • The acrylic reference images are updated. The other effect tests pass with no reference change.

The CPU acrylic, drop shadow, backdrop drop shadow, glow and inner
shadow effects converted the tint color to Rgba32 before they built
the color matrix. That cut the tint to 8 bits for each channel, while
the WebGPU effects use the full-precision color. The CPU effects now
use Color.ToScaledVector4 with the same alpha representation as their
WebGPU counterparts.
@JimBobSquarePants JimBobSquarePants added the bug Something isn't working label Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80%. Comparing base (c952e8f) to head (209c432).

Additional details and impacted files
@@              Coverage Diff              @@
##           release/3.1.x    #437   +/-   ##
=============================================
  Coverage             80%     80%           
=============================================
  Files                235     235           
  Lines              29647   29647           
  Branches            3409    3409           
=============================================
+ Hits               23992   23993    +1     
  Misses              4698    4698           
+ Partials             957     956    -1     
Flag Coverage Δ
unittests 80% <100%> (+<1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@JimBobSquarePants
JimBobSquarePants merged commit 5ce7b6a into release/3.1.x Nov 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant