Godot Tutorial #3: Textured Text with shaders

nunodonatonunodonato Posts: 11Member
edited December 1969 in Shaders
Here's a small tutorial to share what I learnt today while trying to apply a texture to a text in godot :)<br />(sorry for the quality, I'm a noob at this :)<br /><br />Edit: as another Godoter pointed out in reddit, you dont need to split the vector into scalars to do the math, its easier to just use vector multiplication :)<br /><br /> /><br />PS - there are 2 easter eggs in the video :P

Comments

  • MegalomaniakMegalomaniak Posts: 4,430Admin
    Very good, I have spent quite a lot of time trying to figure out what the default font(sign layout) is like, but have not yet found the texture/bitmap file for it. I do have reason to guess based on my own experimentation so far that it probably isn't power of 2. Your idea of using blender's uv-color-grid to debug it was a very clever idea, not sure why I didn't think of doing that myself!<br /><br />As for the vertex shader/vertex coordinate bit, you could input a vector uniform that you overwrite with a script(getting the node size) then doing the scaling calculation in the vertex shader and send the result through say the Var1 output to the fragment program and use it as your custom coordinate system for the fragment program/shader. :)<br /><br />Anyways awesome video and thanks for sharing! :)

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file