#Filled Font Shader?
1 messages · Page 1 of 1 (latest)
are you not using textmeshpro?
yeah, you can set the color either in the component or in the material
are you talking about vertex color? that wouldnt work
wait, what kind of font are you using?
thats how all font works
font cannot contain color
thats why Im asking if there is a way how to do this with hlsl instead
no?
yes ttf
font ttf cannot contain color
the ttf can't
you apply the color on the software
but why not just have an outline?
while in my case I was applying black & white color
the font design doesnt have a fill by default
But if it did you could have the outline as an actual outline
you could also have a second font that's just the inside
and have 2 text in front of eachother
but there's no way to fill stuff in that's not there
TMPro generates an SDF from your font
that tells the shader how far is a pixel from the line
yea, doubling the renderer usage
yes, you can also copy tmpro's shader and add an extra texture
but that's a lot of work
this is
by copying the shader I mean the hlsl
sample a secondary texture
that could work.
Forgot to mention, so I'm going to restructure the glyph instead, from the font sprite sheet atlas