Can I change the direction of a scalar material fill?

Hi, so here is my approach:

  1. you have to mask the texturecoordinate acording to your direction… in my case from left to right. If you want up/down you have to mask the G-Channel
  2. i use the if to make a hard edge where i can multiply with the opacity and the color…

hope it helps…