[PR #817] Strawman: Dumb implementation of text D2D effects. #24331

Closed
opened 2026-01-31 09:02:38 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/817

State: closed
Merged: No


More for feedback and ideas after I was screwing around with the code,
not really for merging, though this is probably not that far off.

Edit

Updated with settings parsing (though pretty hacky), and applies to all rendering output:

updated-shadow

Note the offset x,y settings are not hooked up, but they are other settings you'd probably want. I'm thinking all those should be extracted to a shadow setting block and a shadow renderer effect taking it that can plug in, design wise.

Original

After building this, I realized you probably actually want to do it on
the whole buffer, not just the text layer, which would make things way
easier, and correctly handle cases like the vim bottom separator.

Here's the current shadow effect:
shadow-effect

And without acrylic:
shadow-opaque

The super-dumb displacement effect, also showing a weird limit on the affected output size:
displacement-effect

**Original Pull Request:** https://github.com/microsoft/terminal/pull/817 **State:** closed **Merged:** No --- More for feedback and ideas after I was screwing around with the code, not really for merging, though this is probably not *that* far off. ## Edit Updated with settings parsing (though pretty hacky), and applies to all rendering output: ![updated-shadow](https://user-images.githubusercontent.com/1840547/57893511-5ac89380-7897-11e9-922f-276dd28e3d04.png) Note the offset x,y settings are not hooked up, but they are other settings you'd probably want. I'm thinking all those should be extracted to a shadow setting block and a shadow renderer effect taking it that can plug in, design wise. ## Original After building this, I realized you probably actually want to do it on the whole buffer, not just the text layer, which would make things way easier, and correctly handle cases like the vim bottom separator. Here's the current shadow effect: ![shadow-effect](https://user-images.githubusercontent.com/1840547/57765363-6746d200-7759-11e9-9e30-b6682235b406.png) And without acrylic: ![shadow-opaque](https://user-images.githubusercontent.com/1840547/57765451-9e1ce800-7759-11e9-8b16-c1ffb1463a59.png) The super-dumb displacement effect, also showing a weird limit on the affected output size: ![displacement-effect](https://user-images.githubusercontent.com/1840547/57765635-f8b64400-7759-11e9-96f1-ba3f8872a57a.png)
claunia added the pull-request label 2026-01-31 09:02:38 +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#24331