Skip to main content

Type Alias: MaterialResource

MaterialResource = object

Represents a material resource that can be additively applied to a material targeted in the scene.

Properties​

albedoMap?​

optional albedoMap?: Asset

Defines the base color of a surface before any other calculations are made.


alphaMap?​

optional alphaMap?: Asset

Defines the transparency of a surface.


ambientMap?​

optional ambientMap?: Asset

Defines shadowing on a surface.


clearCoat​

clearCoat: MaterialEffectMode

When enabled the material will be displayed with a clearcoat affect for simulating coated plastic surfaces.


clearCoatIOR?​

optional clearCoatIOR?: number

Index of refraction when clear coat is enabled.


createdAt​

createdAt: string

The date that this material resource was created


emissionMap?​

optional emissionMap?: Asset

Defines the amount of light being emitted from a surface.


id​

id: string

A unique identified for this material.


metallicMap?​

optional metallicMap?: Asset

Identical to roughness.


name​

name: string

The name of this material


normalMap?​

optional normalMap?: Asset

Defines the direction light will bounce in when it hits a point on a surface.


reflectionIntensity?​

optional reflectionIntensity?: number

The intensity of reflection, when reflection is enabled via a texture.


reflectionMap?​

optional reflectionMap?: Asset

Used to define reflection of light on a surface.


reflectionRotation?​

optional reflectionRotation?: number

The rotation of the reflection texture (along the up axis), in degrees.


refractionIntensity?​

optional refractionIntensity?: number

The intensity of refraction, when refraction is enabled via a texture.


refractionMap?​

optional refractionMap?: Asset

Used to define refraction of light on a surface.


roughnessMap?​

optional roughnessMap?: Asset

Used to define how smooth a surface is.


updatedAt​

updatedAt: string

The date that this material resource was last updated.