Home

Awesome

Unity-ShaderCharDisplay

Convenient shader tool for displaying ascii characters as debug text in your shaders example

What is this?

Everyone who is working with postprocess shaders always struggle to debug pixel data, or intermediate values. To do so, you have really few tools in hand - return a color as screen color, or debug the pixels in Renderdoc, where you may read DXBC and debug line by line with it. If we have a tool to display realtime data inside shader, this could be really convenient.

Unity-ShaderCharDisplay provides a shadercommon file where you can port to any project you like, and it will display anything you like once you included it! Also a great advantage is that you do not need to include a texture file just for your debug font!

How to use it?

Pretty simple, just add PRINT_CHAR or PRINT_NUMBER to anywhere you like inside your shader!

Function Arguments

How it works?

It's not hard trick, I just encoded every character in numbers. Thanks to 8-bit font creaters.

Special thanks

https://chequered.ink/ for the Teeny Tiny Pixls font.

This font is lisenced only for personal use.