Textures generation

Material Generator plugins offers multiple functions to generate textures. Each of these functions needs a Generation module as input.

Displacement map

The function GenerateDisplacementMap will generate the displacement map from a generation module. This map has a black and white color gradient.

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateDisplacementMap function:

Metallic map

The function GenerateMetallicMap will generate the metallic map from a generation module. This map has a black and white color gradient.

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateMetallicMap function:

Roughness map

The function GenerateRoughnessMap will generate the roughness map from a generation module. This map has a black and white color gradient.

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateRoughnessMap function:

Normal map

The function GenerateNormalMap will generate the normal map from a generation module.

The color of each pixel is determined by the normal vector at this pixel. Red composant is based on the X value of the normal vector, Green composant is based on the Y value of the normal vector and Blue composant is based on the Z value of the normal vector.

Inputs needed:

  • Module: a Generation module
  • Texture name: the output texture name
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateNormalMap function (this output is almost flat as you can see on the normal map):

Diffuse map

The function GenerateGiffuseMap will generate the normal map from a generation module.

The color of each pixel is determined by the ColorGradient (explained later).

Inputs needed:

  • Module: a Generation module
  • Color gradient: the color gradient to use to colorize the map.
  • Texture name: the output texture name.
  • AsScreenshot: if this flag is true, the file is saved as a screenshot in screenshots folder (Saved\Screenshots\) instead of as a texture.

Here is the output texture from the GenerateDiffuseMap function using a Terrain color gradient: