Model.Material

Description

Name

struct Tinman.Model.Material

Used by

Model.Read.material

Describes a material of a 3D model.

Fields / Optional

baseColor

Type

Tinman.Color

Default

{Color.Name: White}

The base color (linear sRGB) and transparency.


baseColorMap

Type

Material.Texture

Default

null

The base color (compressed sRGB) and transparency texture.


displacement

Type

number

Default

0

The displacement scale.


displacementMap

Type

Material.Texture

Default

null

The displacement texture (linear red or alpha).


emissive

Type

Tinman.Color

Default

{Color.Name: Black}

The emissive color value (linear sRGB).


emissiveMap

Type

Material.Texture

Default

null

The emissive texture (compressed sRGB).


glossiness

Type

number

Default

0

The glossiness value (linear), in the range [0..1].


glossinessMap

Type

Material.Texture

Default

null

The glossiness texture (linear red or alpha).


lineThickness

Type

number

Default

1

The line thickness for opaque line geometry, in screen pixels.


metalness

Type

number

Default

-1

The metalness value (linear) in the range [0..1] (for the metallic-roughness PBR workflow) or negative (for the specular-glossiness workflow).


metalnessMap

Type

Material.Texture

Default

null

The metalness texture (linear green).


normal

Type

number

Default

1

The normal-vector scale factor.


normalMap

Type

Material.Texture

Default

null

The normal texture (linear sRGB).


occlusion

Type

number

Default

1

The ambient occlusion strength in the range [0..1].


occlusionMap

Type

Material.Texture

Default

null

The ambient occlusion texture (linear red or alpha).


opacity

Type

number

Default

0

The opacity cutoff in the range ]0..1] or 0 to disable.


opacityMap

Type

Material.Texture

Default

null

The opacity texture (linear red or alpha).


reflectivity

Type

Tinman.Color

Default

{I16: 2621}

The reflectivity value (linear sRGB).


reflectivityMap

Type

Material.Texture

Default

null

The reflectivity texture (compressed sRGB).


refraction

Type

number

Default

1.5

The index of refraction.


roughness

Type

number

Default

1

The roughness value (linear), in the range [0..1].


roughnessMap

Type

Material.Texture

Default

null

The roughness texture (linear green).


specularity

Type

number

Default

1

The specularity strength in the range [0..1].


specularityMap

Type

Material.Texture

Default

null

The specularity texture (linear red or alpha).


translucency

Type

Tinman.Color

Default

{Color.Name: Black}

The translucency color (linear sRGB).


translucencyMap

Type

Material.Texture

Default

null

The translucency texture (compressed sRGB).


transmission

Type

number

Default

0

The light transmission in the range [0..1].


transmissionMap

Type

Material.Texture

Default

null

The light transmission texture (linear red or alpha).