HUD hint buttons: Project shadow for better contrast#2167
HUD hint buttons: Project shadow for better contrast#2167
Conversation
|
Play this branch at https://play.threadbare.game/branches/endlessm/hud-hints-contrast/. (This launches the game from the start, not directly at the change(s) in this pull request.) |
|
@wjt I remember we got feedback on having a better contrast in the HUD some time ago. I think it was in Discord. We could do the change in the assets themselves. Here I did it with a shader, at least for a quick try.
|
Use the same offset and color than the text label shadow.
Which actually don't contain any icons. Because when cropping slices of this atlas right below this area, the drop shadow shader does drop a shadow for the pixels above.
|
I think I saw another way to avoid this oversampling of the texture - let me check. |
|
I think this breaks the effect where the hint gets subtly tinted while the button is pressed. From main: Screencast.From.2026-05-08.15-29-00.mp4 |
Oh good catch! Back to draft. |







Use the same offset and color than the text label shadow.
Mouse and keyboard atlas: Remove rectangle of solid pixels
Which actually don't contain any icons. Because when cropping slices of this
atlas right below this area, the drop shadow shader does drop a shadow for the
pixels above.