How do i rotate a linear gradient?

Im trying to use a linear gradient to hide my mesh of cubes.

I tried all those nodes none of them work.

You don’t need to rotate the gradient. You can get the vertical one instead.

However, if you want to rotate it, rotate UVs:

My Products

4 Likes

Thank you.

but it seems it leaves some of the faces on.
I tried playing around with it, didnt get it to work properly.
Am i missing something?

Every face has its UV mapping. You should remap the box or try to use BoundingBoxBased_0-1_UVW:

4 Likes

Thanks so much.