Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text: allow configuring SDF resolution per object #58

Closed
lojjic opened this issue Jun 8, 2020 · 0 comments
Closed

Text: allow configuring SDF resolution per object #58

lojjic opened this issue Jun 8, 2020 · 0 comments

Comments

@lojjic
Copy link
Collaborator

lojjic commented Jun 8, 2020

Currently, the sdfGlyphSize can only be configured once globally. It would be useful to allow configuring this on a per-object basis. For example some fonts with very fine details need a larger SDF resolution than others, and some text objects that will be displayed very large could use sharper corners than those that will be displayed small.

lojjic added a commit that referenced this issue Jun 20, 2020
Implements #58. This allows controlling the resolution of each glyph's
SDF texture, per TextMesh instance. This can be useful when using a font
with very fine details, or when displaying text at very large scales
where certain artifacts like slightly rounded corners are more obvious.
@lojjic lojjic closed this as completed Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant