Search Unity

Question Color Palette Shader

Discussion in 'Shaders' started by QuackedUp, Jul 14, 2022.

  1. QuackedUp

    QuackedUp

    Joined:
    May 3, 2021
    Posts:
    10
    Hey all, I'm trying to make a shader that makes a texture have less colors, for example:
    The original texture

    And the texture with the shader applied


    I would like it to be that I don't havve to give it a color palette, and instead I could set the number of colors it could show. I found a video made by Daniel Ilett that used a Custom Lightning Shader to make the palette but that Custom Lightning shader doesn't seem to work in the newer versions of the shader graph.

    the Custom Lightning shader: https://blog.unity.com/technology/custom-lighting-in-shader-graph-expanding-your-graphs-in-2019
     
  2. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,924