Documentation / Node reference / mat nodes

mat/MeshBasic

A simple, unlit-style mesh material with a flat colour.

Mesh

Assigns a solid colour to a mesh. Create it inside a geo/MaterialNetwork, then point a geo/Material node at it (by path) to shade objects. Use the group on geo/Material to give different objects different materials.

Parameters

Name Type What it does
color Color4 not documented yet
useVertexColor Float not documented yet
advanced Bool not documented yet
depthCompare UInt8 not documented yet
depthBias SInt32 not documented yet
depthBiasSlopeScale Float not documented yet
depthBiasClamp Float not documented yet

Examples

Scenes you can open in the editor that teach this node.

One box, copied three times, each copy a different colour. It shows how a material node picks which objects it applies to, using the object index as its group, and how it points at a material by relative path.

mat/MeshBasic geo/Material

Materials Getting started

This example creates a series of objects in a line. If you observe them from either ends of the line, you will see the objects behind the first one are tinted by the ones before them.

geo/AttributeCreate mat/MeshBasic

Rendering Materials

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.