#Adding text on shaders in Shader Graph
1 messages · Page 1 of 1 (latest)
Best achieved with texture that has the text in it
But I guess at that point it would be easier to just store a texture of all of the balls with the labels
I don't disagree. I don't see much value in using special shader for the the balls at all
I'm just playing around with the Shader Graph, to be honest
Seemed like an interesting thing to try
Nothing wrong with that. Just for a learning opportunity, you could make a texture that has all the numbers/text required for all the balls in one black and white atlas
I think I could just make one texture with all the balls in it
Like one side of each ball
that could work too
Welp, thanks for the help
I'm sure there's more than a few ways to make text purely from shaders, but you probably have to get clever
And it'd be totally hellish to do with nodes
A lot of maths would probably have to be involved
A lot
I was thinking of somehow involving the vectors of a font in a shader
But that's just... Why would I do that lol
I'm just gonna make a B&W texture with the numbers from 1 to 13 and overlay them on top of the existing graph
That's more trouble than it is worth. Pure textures and SDF textures are the two ways I would consider
Pure textures?
bad wording, like just image of the font
Oh, fair enough
Preferably whole word I'd say, unless you really want to have arbitrary letter combinations
Yeah, well It's just gonna be the numbers, so I think I'm just gonna write 1, 2, 3 ... 10, 11, 12, 13
For simplicity
Don't wanna deal with alighning the numbers
Sidenote, on shadertoy searching "letters" turns up some totally procedural text
I wouldn't dream of doing that with nodes
But SG supports custom nodes too
I mean it's not too difficult, just matter of combining basic shapes into a SDF function. Just a lot of work to get all the numbers