-
Could you add sample code how to use generated atlas? Do we need to use both PNG file for texture and JSON/CSV file for glyph offsets ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, how else would you know where the glyphs are? Here is code that generates vertex data for a given text: msdf-atlas-gen/msdf-atlas-gen/shadron-preview-generator.cpp Lines 107 to 143 in dadc65c The layout of each vertex is: msdf-atlas-gen/msdf-atlas-gen/shadron-preview-generator.cpp Lines 30 to 33 in dadc65c |
Beta Was this translation helpful? Give feedback.
Yes, how else would you know where the glyphs are? Here is code that generates vertex data for a given text:
msdf-atlas-gen/msdf-atlas-gen/shadron-preview-generator.cpp
Lines 107 to 143 in dadc65c