[PR #12734] [MERGED] AtlasEngine: Fix grayscale blending shader #29211

Open
opened 2026-01-31 09:33:31 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12734
Author: @lhecker
Created: 3/21/2022
Status: Merged
Merged: 3/23/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/atlas-engine-fixup


📝 Commits (1)

  • e6160b7 AtlasEngine: Fix grayscale blending shader

📊 Changes

2 files changed (+4 additions, -2 deletions)

View changed files

📝 src/renderer/atlas/dwrite.hlsl (+2 -1)
📝 src/renderer/atlas/shader_ps.hlsl (+2 -1)

📄 Description

5964060 contains a regression were the grayscale blending algorithm used the
gamma corrected foreground color as the pixel color, instead of blending that
color with the background color first. Due to that the background color
got lost / got set to black. This breaks any dark-on-bright outputs.

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

All 3 "antialiasing" settings work just like in DxEngine.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/12734 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 3/21/2022 **Status:** ✅ Merged **Merged:** 3/23/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/atlas-engine-fixup` --- ### 📝 Commits (1) - [`e6160b7`](https://github.com/microsoft/terminal/commit/e6160b75c5e6b4d380c4fbe4a65cd6754693d1f6) AtlasEngine: Fix grayscale blending shader ### 📊 Changes **2 files changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/atlas/dwrite.hlsl` (+2 -1) 📝 `src/renderer/atlas/shader_ps.hlsl` (+2 -1) </details> ### 📄 Description 5964060 contains a regression were the grayscale blending algorithm used the gamma corrected foreground color as the pixel color, instead of blending that color with the background color first. Due to that the background color got lost / got set to black. This breaks any dark-on-bright outputs. ## PR Checklist * [x] I work here * [x] Tests added/passed ## Validation Steps Performed All 3 "antialiasing" settings work just like in DxEngine. ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:33:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29211