libgdx - How to use Distance-field-fonts in either Scene2D.ui OR on a 3d rect mesh -
i making game needs lot of text rendered @ different distances.
distance-field-fonts perfect this;
https://github.com/libgdx/libgdx/wiki/distance-field-fonts
i made font no problem - software , tutorial great there. however, tutorials go how utilize font spritebatch. game 3d, isn't useful me.
my game set utilize scene2d.ui in 3d world arrange labels in virtual interface, if have i'll switch making own layout objects out of lots of meshs.
i looking any way utilize lots of distance field fonts in 3d space- lets on rectangle "hello world" on it. if helps think game have hundred "text planes" created @ run time, not changing 1 time created.
please bare in mind have no real experience shaders. explanations have found when googleing skip on things (i assume) basic others (like how create shader shaderprogram). did seek research myself, needing have custom shader, custom shader program, custom shader provider , manually reimplementing own labels take custom shader seemed going black hole of blindly poking when there might easier/more obvious way utilize distance-field-fonts.
any help or pointers appreciated, thanks.
3d libgdx
No comments:
Post a Comment