# How to make flow x y z direction in 1 shader material?

**URL:** <https://blenderartists.org/t/how-to-make-flow-x-y-z-direction-in-1-shader-material/1655824>\
**Category:** Basics & Interface\
**Tags:** materials\
**Created:** [October 23, 2026, 9:18pm UTC](https://blenderartists.org/t/how-to-make-flow-x-y-z-direction-in-1-shader-material/1655824 "2026-10-23T21:18:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ILIKEGREEN](https://blenderartists.org/letter_avatar_proxy/v4/letter/i/76d3ee/32.png) [@ILIKEGREEN](https://blenderartists.org/u/ILIKEGREEN)\
**Post date:** [October 23, 2026, 9:18pm UTC](https://blenderartists.org/t/how-to-make-flow-x-y-z-direction-in-1-shader-material/1655824/1 "2026-10-23T21:18:55Z")

</div>

Hi,

Problem: on the intersection of 2 material on my pipe system mesh. The black-shadow in the picture appears.

 ![black-shaduw between materials](https://blenderartists.org/uploads/default/original/4X/2/9/2/292c5509576f269cb73c2b3ee416e226ab22db78.jpeg)

Reason for my setup:

I want to show the inside flow of a tube/ pipe system

[flow-direction-roughness.blend](https://blenderartists.org/uploads/short-url/lWOkGDu0jzv1nr0NEwa2YzD7Gur.blend) (1.4 MB)

 ![separate-xyz direction for water-ripple roughness effect throug pipe](https://blenderartists.org/uploads/default/original/4X/a/7/1/a71677631d84e5de9748fa49b8f2ec33605210c7.jpeg)

For the direction of flow I thought it is good to use an location animated noise texture on roughness channel in shader material.

My system has z, x,y direction. For each I made de flow specific for direction (see nodes above).

Any idea to fix or make the flow in a better way?

How would you approach this goal?

---

<div class="post-metadata">

**Author:** ![oo\_1942](https://blenderartists.org/user_avatar/blenderartists.org/oo_1942/32/797904_2.png) [@oo\_1942](https://blenderartists.org/u/oo_1942)\
**Post date:** [October 24, 2026, 5:44am UTC](https://blenderartists.org/t/how-to-make-flow-x-y-z-direction-in-1-shader-material/1655824/2 "2026-10-24T05:44:06Z")

</div>

![image](https://blenderartists.org/uploads/default/original/4X/a/f/a/afa6a57b687f4b218d1e84da8b8bbfc91f7df01a.png)

 ![image](https://blenderartists.org/uploads/default/original/4X/a/a/c/aac3f6deb3c091c17fd431cce3db96bce2c1165f.png)

This issue is caused by the volume.  
The volume at the junction where the two different materials meet is shown in black.

Add…

I’m not sure if I fully understood the intent of the question, but… (I’m not an English user)  
If the question is about controlling a texture that moves in different directions, I think using UVs is the easiest approach.

[fsdf.blend](https://blenderartists.org/uploads/short-url/rO34BaUWOovGxH2ScpFAuLxOILg.blend) (157.3 KB)

---

<div class="post-metadata">

**Author:** ![Almond780](https://blenderartists.org/user_avatar/blenderartists.org/almond780/32/1498698_2.png) [@Almond780](https://blenderartists.org/u/Almond780)\
**Post date:** [October 24, 2026, 6:34am UTC](https://blenderartists.org/t/how-to-make-flow-x-y-z-direction-in-1-shader-material/1655824/3 "2026-10-24T06:34:03Z")

</div>

Sorry but I cannot help you. By just giving you a .blend for the fix because its past my knowledge about this.

Tho there are 2 things you might want to fix or change.

1. When adding a base light point with 10 exposure. You get this.  

2. I think we can both agree you do not need this much topology.

---

<div class="post-metadata">

**Author:** ![Gianluca\_Scattarella](https://blenderartists.org/user_avatar/blenderartists.org/gianluca_scattarella/32/1501946_2.png) [@Gianluca\_Scattarella](https://blenderartists.org/u/Gianluca_Scattarella)\
**Post date:** [October 24, 2026, 11:18am UTC](https://blenderartists.org/t/how-to-make-flow-x-y-z-direction-in-1-shader-material/1655824/4 "2026-10-24T11:18:32Z")

</div>

Using `Object` coordinates and splitting axes with `Separate XYZ` across three different materials is making this way harder than it needs to be. Because `Object` space is locked to the global axes, every 90-degree bend forces you to swap materials mid-pipe, creating an abrupt seam where one directional animation cuts into another. (Also, running your axis through an `Absolute` node mirrors the coordinates across the object’s origin point, which will make your flow reverse direction if the pipe ever crosses zero). Those black shadow blotches at the elbow and T-junction aren’t actually caused by the shader—that is broken smooth shading from either an interior face left inside the T-intersection, unmerged vertices, or flipped normals where the segments meet.

To run the entire x, y, and z flow inside a single shader material, ditch `Object` coordinates and use `UV` coordinates instead. If you generated the pipes from curves, the UVs already follow the length of the tube automatically; if it is a polygon mesh, just mark a lengthwise seam, select all faces, and use `Follow Active Quads` so every pipe segment is straightened out along the same axis in the UV editor.

Once the UVs run along the path of the pipe, you can delete `mat 2` and `mat 3`, get rid of the `Separate/Combine XYZ` math, and plug `UV` straight into your `Mapping` node. Animating just one Location axis on the `Mapping` node will make your `Noise Texture` smoothly follow every turn in 3D space using one material. To get rid of the black shadows, go into Edit Mode, delete any internal faces blocking the inside of that T-junction, hit `Shift + N` to recalculate your normals, and add a `Weighted Normal` modifier (or a small bevel at the joints) so the shading doesn’t collapse across the corners.

---

<div class="post-metadata">

**Author:** ![system](https://blenderartists.org/uploads/default/original/4X/3/5/9/359f93d9347d57148196b3b4c3f3528f831e2f47.png) [@system](https://blenderartists.org/u/system)\
**Post date:** [October 26, 2026, 11:19am UTC](https://blenderartists.org/t/how-to-make-flow-x-y-z-direction-in-1-shader-material/1655824/5 "2026-10-26T11:19:02Z")

</div>

Closed on October 26, 2026, 11:19am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
