Hue shader

Just keep in mind that conditionals like “if” are very expensive in shaders. You’re probably better off using the technique described in the linked thread.