Material

Give any part bricks, planks, tiles, dirt, brushed metal or cloth. A Material's maps tile over blocks, balls and meshes alike and stay put when the part moves.

A low granite plinth on a paved patio before a sunlit cream plaster wall, blue sky above, mid afternoon sun from the front left; an off white block and an off white ball stand on the plinth in the plain look.
Before
The same frame with a Material on the block: it turns to red brick with pale mortar joints, the ball unchanged.
After

After: A Material with the Bricks105 colour, normal and roughness maps, Studs Per Tile 3.

A Material holds five maps, ColorMap, NormalMap, RoughnessMap, MetalnessMap and HeightMap (real depth with Relief), tiled every StudsPerTile studs in the part's own space, plus Color, which tints them, and Roughness and Metalness for where a map is missing. Set a TexturePack's Material to it and every part using that pack wears it. Every project comes with ten in its Materials folder. They're Bricks, Planks, BrushedMetal, Tiles and Dirt, plus the cloths Cotton, Denim, Knit, Fleece and Canvas.

Properties

Surface

NameTypeDefaultDescription
ColorColor31, 1, 1A colour that tints the material.
Metalnessnumber0
0 to 1
The metalness used where the material has no metalness map.
NormalStrengthnumber1
0 to 10
Porositynumber-1
-1 to 1
Reliefnumber0
0 to 8
ReliefOutlinebooleanfalse
Roughnessnumber0.5
0 to 1
The roughness used where the material has no roughness map.
StudsPerTilenumber8
0.05 to 1000
The maps tile once every this many studs.
Variationnumber0
0 to 1
VariationSizenumber40
1 to 2000

Maps

ColorMapImageContent1, 1, 1
HeightMapImageContent1, 1, 1
MetalnessMapImageContent0
0 to 1
NormalMapImageContent0.5, 0.5, 1
RoughnessMapImageContent0
0 to 1

Methods

NameArgumentsReturns
UseRealMaterial(id: string)boolean
From Instance 22