Skip to content

MaterialSurface

Type

MaterialSurface configures surface textures and shading multipliers.

BaseColor

Field
BaseColor: string?

BaseColor is the color and alpha texture asset ID, or nil. Required for "Cutout" and "Decal" pipelines.

Normal

Field
Normal: string?

Normal is the normal map asset ID (green points up), or nil.

Orm

Field
Orm: string?

Orm is the occlusion (red), roughness (green), and metallic (blue) texture asset ID, or nil.

Tint

Field
Tint: Color?

Tint is the Color and opacity multiplier (default Color.new(1, 1, 1, 1)).

TileSize

Field
TileSize: number?

TileSize is the texture repeat size in units, greater than 0 (default 1).

NormalStrength

Field
NormalStrength: number?

NormalStrength is the normal map strength multiplier (default 1).

RoughnessMult

Field
RoughnessMult: number?

RoughnessMult scales roughness from 0 (glossy) to 1 (matte), default 1.

MetallicMult

Field
MetallicMult: number?

MetallicMult scales metalness from 0 (non-metal) to 1 (metal), default 1.

AlphaCutoff

Field
AlphaCutoff: number?

AlphaCutoff is the opacity cutoff from 0 to 1 for "Cutout" and "Decal" surfaces (default 0.5).

Neon

Field
Neon: boolean?

Neon is true when surface color emits light (default false).

TintVertex

Field
TintVertex: boolean?

TintVertex, when true, tints textured meshes by the part's Color (default false).