Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Created December 3, 2015 22:29
Show Gist options
  • Save unitycoder/9646b165f4414e2c9cc7 to your computer and use it in GitHub Desktop.
Save unitycoder/9646b165f4414e2c9cc7 to your computer and use it in GitHub Desktop.
Shader with Toggle (bool)
[MaterialToggle(_INVERT_OFF)] _Invert ("Invert", Float) = 0
..
#pragma multi_compile _INVERT_ON _INVERT_OFF
..
#if _INVERT_ON
..
#else
..
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment