Hi, so here is my approach:
- 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
- i use the if to make a hard edge where i can multiply with the opacity and the color…
hope it helps…