UV tweaking for function inputs, how to ?

Hi,

I have a small problem with one of my mesh materials.
There is a pipe mesh with an open section which shows some moving fluid/plasma…

c620e31fc33bae2cf91373b23d86c5e62793b249.jpeg

I made a small function for the flowing part:

2c693e801206ad402323dbd4865b670da3a873bf.jpeg

As long as I use the preview values, the output produces a moving texture.
But once I plug in textures to the inputs (coincidentially the same ones), the output is static.

e7b01569d8ae34b696bedeefd14accda0c18b226.jpeg

To some degree, this seems logical as I modify the UVs of the Preview samples in the function graph.

Since the function input nodes dont have UV pins to the left, my question is:
How can I modify the UVs of a function input :confused:

Any help is appreciated :slight_smile:

Cheers,
Klaus

The texture panners are placed before the function inputs so that won’t work obviously. All your material function does is a regular Lerp.
You would need to change your input types to Texture2D so you can pass in a texture object which is then sampled with the panning UVs in the material function.

f809cdce774a6b670d33422d397adc5d78f30a8e.jpeg

Hi,

Thanks :slight_smile:
I didnt think of that I need to sample the input again to change the UVs… Now its working:

Cheers,
Klaus

2 Likes