beyond-all-reason / beyond-all-reason/RecoilEngine
LuaOpenGL::Text ignores color alpha when drawing outline
- Dominant language
- C++
- Stars
- 679
- Forks
- 290
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 40
Description
For very low alpha values, the result is drawing basically just the outline, which looks awkward.
alpha = 0.1:

alpha = 0.02:

---
I encountered this while developing https://gist.github.com/salinecitrine/7f6e21ed304eeaba9ad4a122019c0d82 . I ended up using a workaround where I draw extra black copies of the text, offset by a few pixels.
alpha = 0.1, with my workaround (indicating very approximately what I think it should look like instead):

Contributor guide
Research direction
Start by tracing the LuaOpenGL::Text implementation and reproduce the issue with very low alpha values such as 0.1 and 0.02. Compare the rendered text and outline against the reported screenshots; done means the outline fades consistently with the text color alpha without requiring the documented workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, lua
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100