explaingit

mossdewdrop/com.debugshaderpack.numeric-display

Analysis updated 2026-05-18

0ShaderLabAudience · developerComplexity · 2/5Setup · easy

TLDR

A Unity shader package that lets developers print numeric values directly onto the screen for debugging shaders.

Mindmap

mindmap
  root((Shader Numeric Display))
    What it does
      Print numbers on screen
      Debug shader values
      Three color rows
    Tech stack
      ShaderLab
      HLSL
      Unity
    Use cases
      Debug shaders
      Use in Amplify Editor
      Works in URP
    Requires
      Unity 2022.3+

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Debug a shader by printing a variable's numeric value directly on screen.

USE CASE 2

Inspect three values at once using the red, green, and blue info rows.

USE CASE 3

Use the included Amplify Shader Editor entry points in a node-based shader.

USE CASE 4

Add live number debugging to shaders on either Built-in or URP render pipelines.

What is it built with?

ShaderLabHLSLUnity

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires Unity 2022.3 or newer.

The README does not state a license.

In plain English

This is a Unity Package Manager package that lets shader developers print numeric values directly onto the screen from inside a shader. When debugging graphics code in Unity, it is normally very difficult to inspect what value a variable holds mid-render, this tool solves that by rendering numbers visually on the object, anchored to the object's position on screen. The package renders three rows of numbers, labeled RInfo, GInfo, and BInfo, each displayed in a matching color: red, green, and blue. The numbers are overlaid on the current object's origin projected into screen space, and you can configure a pixel offset and character size. Values are truncated to the supported range of -999.999 to 999.999. The package exposes standard HLSL functions for shader code, and also provides entry points compatible with Amplify Shader Editor, a visual node-based shader authoring tool. Example shaders are included for both Unity's Built-in render pipeline and the Universal Render Pipeline (URP). To use it, you include the package's HLSL file at the top of your shader, then call the display functions with whatever values you want to inspect. For URP shaders, you include the URP Core library first. Installation follows the standard Unity Package Manager flows: adding from disk, referencing a Git URL, or adding a local path dependency in the project manifest. The text encoding algorithm that renders the numerals inside the shader is based on a ShaderToy example referenced in the README. The primary language is ShaderLab, Unity's shader authoring format. Unity 2022.3 or newer is required.

Copy-paste prompts

Prompt 1
Show me how to include this package's HLSL file in my Unity shader.
Prompt 2
Explain how to configure the pixel offset and character size for the debug numbers.
Prompt 3
Help me use this package's display functions inside Amplify Shader Editor.
Prompt 4
Walk me through installing this Unity package via a Git URL.

Frequently asked questions

What is com.debugshaderpack.numeric-display?

A Unity shader package that lets developers print numeric values directly onto the screen for debugging shaders.

What language is com.debugshaderpack.numeric-display written in?

Mainly ShaderLab. The stack also includes ShaderLab, HLSL, Unity.

What license does com.debugshaderpack.numeric-display use?

The README does not state a license.

How hard is com.debugshaderpack.numeric-display to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is com.debugshaderpack.numeric-display for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.