Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width50%

For the purpose of this guide, the example MaterialX shader consists of the following nodes to form a procedural texture:

Fancy Bullets
typecircle
  • two standard surface nodes - one with magenta Base color and one with green Base color.
  • a mix node, which connects the two standard surface nodes as foreground and background, as well as a noise node which defines the mix. The Node Type is set to float/terminal.
  • a noise node, which controls the noise of the texture pattern and is connected to the mix input of the mix node. 
  • a combine node, that converts the vector3 output values for X and Y axes from the rotate3d node and converts them to a vector2 value, which can be used as a texcoord on the noise2d node.
  • a rotate node that introduces rotation of the pattern according to one or more axis. The rotate node's output is connected to the texcoord input of the noise node. 
  • a multiply node necessary to scale the pattern by controlling the frequency. The multiply's output is connected to the in input slot of the rotate node.
  • an add node which introduces UV offset to the texture. The add's output is connected to the in input slot of the multiply node.
  • a texcoord node which ensures the UV placement of the texture. Note that the texcoord is an obligatory node for all textures! It is connected to the in slot of the add node. 
  • an Output node, which is created by default within the shader network.

Such setups can be used for the creation of procedural textures such as the metal handle example here.


Want to follow along but don't have a license?

UI Button
colorblue
newWindowtrue
icondownload
titleDownload Free Trial
urlhttps://www.chaos.com/free-trial?utm_campaign=docs-tutorials&utm_medium=website&utm_source=docs.chaos.com

Column
width5%


Column
width45%

...

Section
Column
width10%


Column
width80%

Image RemovedImage Added

The Shader Setup in LookDevX standard_shader tab

Column
width10%


...

Section
Column
width30%


Column
width40%
Image slider
Panel
borderStylenone

Amplitude = 2, Pivot = 0

Panel
borderStylenone

Amplitude = 2, Pivot = 1

Panel
borderStylenone

Amplitude = 3, Pivot = 2

Column
width30%
UI Text Box
typeinfo
Some of the nodes in this example show a red indicator that there is a mismatch between the node's types. This is only indicative that there is no absolute match between the types, but it does not affect the functioning of the nodes.