Simple Linear Gradient + Tiling Texture Material

Hello! I’m looking to have a tall tree-like element with just a tiling texture on it. That part’s no problem. But additionally, I’d like to have a black gradient that darkens the mesh towards the top. So pure texture at the bottom, gradient out to black towards the top of the tree.

I’ve dug through tons of tutorials and can’t find the solution here. Any help is much appreciated. Thank you!

One way to create a gradient is using the objects world position.

In order to use that ghradient as a mask to darken the texture, you could use a simple multiply node, or choose one of the many blend mode nodes available (I.E overlay).

Thank you!!