
Inspired by game jams, this shader allows you to display any 3D textured model, 2D sprite, or UI element automatically converted to a 4-colour-only representation. No frills that break the rules!It's a recurring theme in game jams to have some bonus goals or restrictions - this shader was created by one such common restriction: use only 4 colours in your game's graphics. This shader does exactly that, without you needing to modify any graphics, just use a material that uses this shader and your thing will be in only 4 colours. The shader ensures that there is no anti-aliasing done, so every pixel is one of the 4 target colours. There is no normal map, AO, specularity, or anything that would introduce even one pixel that is not one of the 4 chosen colours. Includes a Canvas-targeted UI version.Includes a Lit version if you really must insist, but that's going to break the 4-colour rule! :P+ uses Shader Graph