Skip to content

Unity Shader for inverting TMPro text color based on what's behind it

Notifications You must be signed in to change notification settings

Cisc0-gif/TMPro-Invert-Color-Shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

TMPro Invert Color Shader

Unity Shader for inverting TMPro text color based on what's behind it

Special thanks to @QuiteDan for providing the original invert shader in a Unity Forum post from 2013!

Setup

  1. In Unity, go to Package Manager and make sure you have TMPro installed
  2. Then go to Import Package -> Custom Package and select TMProInvert.unitypackage from this repo
  3. That's it! Now in your TMPro text, scroll down until you see "FONTNAME Material" and where it says "Shader", select TextMeshPro -> Distance Field Invert

About

Unity Shader for inverting TMPro text color based on what's behind it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published