Skip to content

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

License

Notifications You must be signed in to change notification settings

StefanJo3107/ASCII-Rendering-Shader-in-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published