ASCII Rendering Shader In Unity by StefanJo3107 - 1

Shaders & Effects

Unity Image Effect that replicates retro ASCII rendering seen in games such as Rogue and Dwarf Fortress

Unknown VersionMIT LicenseUpdated 55 days agoCreated on July 23rd, 2020
Go to source

ASCII Rendering Shader in Unity

Unity Image Effect that replicates retro ASCII rendering seen in games such as Rogue and Dwarf Fortress!

ko-fi

Simply start by adding ASCIIRendering script to your camera Game Object.

Variables Description:

  • ASCII Shader: Reference to the shader itself
  • CharTex: Characters Texture, it is a texture that consists of a character sprites in a single line. See example in the Textures folder
  • Tiles X: Number of characters horizontally, it is recommended to set this value to ScreenWidth/charWidth for the best result
  • Tiles Y: Number of characters vertically, it is recommended to set this value to ScreenHeight/charHeight for the best result
  • charWidth: Width of a single character in pixels
  • charHeight: Height of a single character in pixels
  • charCount: Number of characters in a texture
  • brightness: Background brigthness of a character, it should be a value between [0,1]
  • monochromatic: Should the shader use all of the colors, or only shades of green

You are free to use this shader on all of your projects, commercial or non-commercial, you don’t have to credit me anywhere, even though that would be nice.

Contact:

Example 01 Example 02 Example 03

Show all projects by StefanJo3107