Commit 5c5382a
committed
Vulkan/D3D12: Use BLEND_OP_MAX for alpha channel blending
Change the alpha blend operation from ADD to MAX in the blend-enabled
pipeline states for both Vulkan and D3D12. This ensures the render
target alpha channel is always 1.0 (since the background establishes
alpha=1.0 and max(src, 1.0) preserves it) while leaving RGB blending
with SRC_ALPHA / ONE_MINUS_SRC_ALPHA completely unchanged.1 parent 4b4d82e commit 5c5382a
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2628 | 2628 | | |
2629 | 2629 | | |
2630 | 2630 | | |
2631 | | - | |
| 2631 | + | |
2632 | 2632 | | |
2633 | 2633 | | |
2634 | 2634 | | |
| |||
0 commit comments