Gradient material separate z axis and x axis I made a gradient material shown in the picture.

It should fade out on Z axis.
But on the actual mesh that I applied the texture on. The color faded out to Y axis instead of Z axis.

Any solution to this problem?
Texture Coordinates then Mapping node connected to your gradient texture. Just play with the rotation and you'll be all set.