Change direction of gradient - ColorRamp


If one looks at the screenshot in the answer on the above page,
the colors are gradient from right to left.

Is there a way to make the gradients go from top to bottom ?
Or in other words, how to rotate the direction of the gradients with 90 degrees ?

Thanks for any help.

Add a texture coordinate node with the generated output going to a mapping node with the mapping node’s output to the input of the gradient texture…your rotation settings on the mapping node will rotate your texture :slight_smile:

Texture Coordinate --> Mapping --> Texture --> Shader --> Output

Indeed it does.

Thanks Graphics_Dev, much appreciated :slight_smile: