Documentation / Node reference / mat nodes

mat/MeshGrid

Creates a material that draws a grid with coloured axes.

Mesh

Draws grid lines on a surface, such as a ground plane. The lines keep their thickness at any distance. The two axis lines through the origin get their own colours.

Parameters

Name Type What it does
cellSize Float Distance between grid lines.
lineColor Color Colour of the grid lines.
lineWidth Float Line thickness, as a fraction of a cell.
bgColor Color4 Colour between the lines. Lower its alpha to see through.
xAxisColor Color Colour of the X axis line.
zAxisColor Color Colour of the Z axis line.
axisWidth Float Axis line thickness, as a fraction of a cell.
transparencyMode UInt8 AUTO · OPAQUE · MASK · BLEND How the material's alpha is drawn.
sides UInt8 FRONT · BACK · BOTH Which side of each triangle is drawn.

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.