• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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