Commit 283d624
fix: use mask alpha channel for blending in ItemViewport shaders
Simplify the mask blending logic in quickitemviewport shaders by using only
the mask's alpha channel instead of multiplying with the entire mask color.
This ensures correct color output when the mask texture contains non-neutral
RGB values and maintains consistency with the expected premultiplied alpha
behavior.
Log: Fix mask blending to use alpha channel only in ItemViewport shaders
fix: 修复 ItemViewport shader 中 mask 混合逻辑
简化 quickitemviewport shader 中的 mask 混合逻辑,仅使用 mask 的 alpha 通道
而非整个 mask 颜色值进行混合。这确保了当 mask 纹理包含非中性 RGB 值时输出
颜色正确,并与预期的 premultiplied alpha 行为保持一致。
Log: 修复 ItemViewport shader 中 mask 混合应仅使用 alpha 通道
PMS: BUG-3068471 parent 2459083 commit 283d624
2 files changed
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 47 | + | |
| 48 | + | |
52 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 49 | + | |
54 | 50 | | |
0 commit comments