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.


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
| Name | Type | Default | Description |
|---|---|---|---|
| Color | Color3 | 1, 1, 1 | A colour that tints the material. |
| Metalness | number | 0 0 to 1 | The metalness used where the material has no metalness map. |
| NormalStrength | number | 1 0 to 10 | |
| Porosity | number | -1 -1 to 1 | |
| Relief | number | 0 0 to 8 | |
| ReliefOutline | boolean | false | |
| Roughness | number | 0.5 0 to 1 | The roughness used where the material has no roughness map. |
| StudsPerTile | number | 8 0.05 to 1000 | The maps tile once every this many studs. |
| Variation | number | 0 0 to 1 | |
| VariationSize | number | 40 1 to 2000 |
Maps
| ColorMap | ImageContent | 1, 1, 1 |
| HeightMap | ImageContent | 1, 1, 1 |
| MetalnessMap | ImageContent | 0 0 to 1 |
| NormalMap | ImageContent | 0.5, 0.5, 1 |
| RoughnessMap | ImageContent | 0 0 to 1 |
Methods
| Name | Arguments | Returns |
|---|---|---|
| UseRealMaterial | (id: string) | boolean |
