You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I'm currently working on a game where I have to draw a lot of outlined text, so I would really like this crate to be able to draw and cache outlined glyphs. Would this be possible?
The only solution I've come up with is to use basic outline shader in post, but this isn't ideal as you have to apply the shader every time you draw new text, and that's pretty slow. (This is a big problem for me since I need to be able to draw new text potentially every frame)
The text was updated successfully, but these errors were encountered:
There is currently no baked in support for drawing glyph outline effects.
It is possible to draw them with shader logic. Perhaps there are clever ways to write that shader? This approach is already possible and outside of glyph_brush scope.
Alternatively generate the offset outline lines/curves and feed them into ab_glyph_rasterizer to rasterize for caching into a texture you can draw underneath the regular glyphs. The crate can work with arbitrary outlines but generating them seems non-trivial. Related alexheretic/ab-glyph#75
Hi there, I'm currently working on a game where I have to draw a lot of outlined text, so I would really like this crate to be able to draw and cache outlined glyphs. Would this be possible?
The only solution I've come up with is to use basic outline shader in post, but this isn't ideal as you have to apply the shader every time you draw new text, and that's pretty slow. (This is a big problem for me since I need to be able to draw new text potentially every frame)
The text was updated successfully, but these errors were encountered: