How to use texture coordinate with volume shader?

As you can see in the screen shot, the gradient move horizontally. I want gradient to move vertically. I don’t want to rotate the object. I tried to use texture coordinate, but it didn’t work as expected.


Hi,

It works for me …


Best of luck

Martin

Sometimes I find when doing a linear-style gradient, it’s just easier to use the converter to split XYZ and pick the relevant direction output as a source to drive the factor. May be a bit hacky, but apparently works.

–Edit–
Never mind. Didn’t pay attention this was specifically for volumetric. Most other cases, the shortcut is handy.

Thanks for reply, I miss the texture coordinate.