TMPro - Bitmap Shader - Are there any ways of adding a black outline?

Hello,

I wanted a very pixely font in my game so I went ahead and created a custom one via Font Asset Creator. I then use the text in world space (3D text).

What options do I have for adding a black outline around the text? Is this possible with TMPro?

Thanks!

This is not possible using the bitmap shaders.

Someone could always create a custom shader where the geometry is duplicated with some offset to fake an outline. This is how the UI->Effects->Outline does it which is very inefficient (performance wise) as it can increase the geometry count by 5x or more and doesn’t look good anyway.

Alternatively, you could create a font asset using the SDF modes and increasing the sampling to help maintain better edge sharpness. The outline, would end up a bit rounder but it would still look better than using the UI-Effects implementation.

1 Like

Thank you for the reply Stephen!