UE4 material learning (02-use UV to adjust texture)

step:

1. Create a new material in the content browser

Name it uvTest

 

 2. Double-click to open uvTest

Just drag a texture (an image in .tga format) into the material panel:

 3. Create the following nodes and connect

 4. Select the TextureCoordinate node, and in the details panel, you can adjust the density of the texture through the two parameters of U tiling and V tiling.

For example, I changed the U tile and V tile to 2:

 It can be seen that the horizontal and vertical axes of the texture have become 2 times denser

5. If I want the texture to have an offset, I can use the following node:

At this point, it can be observed that the texture is shifted up by 1/5 unit 

 

Guess you like

Origin blog.csdn.net/ChaoChao66666/article/details/126483141