discretize toon shader into n shades