Skip to main content

Material Graphs

Material Graphs define the look of a material and must contain (for now) a single Material Node.

For example, this is a simple Material Graph. The graph connects a constant color value to a Material Node's emissive field:

Material Graph Example

As can be seen above, the Material Node has a number of input ports. Each port controls an aspect of the runtime lighting environment. The port details are as follows:

PortTypeDefaultUsage
emissiveRGB(0, 0, 0)Color is added directly to the other lighting components of the material.
alphaNumber1The surface opacity.
albedoRGB(0, 0, 0)The surface diffuse color.
glossNumber0?The smoothness / roughness of the surface.
specularRGB(0, 0, 0)Tints the specular color.
normalXYZ(0, 0, 1)The surface normal.
ccGlossNumber0?Clear coat gloss.
ccSpecularRGB(0, 0, 0)Clear coat specular.
ccNormalXYZ(0, 0, 1)Clear coat normal.