Skip to main content

Interface: MaterialAsset

Material asset data.

Extends​

Properties​

name​

name: string;

Asset name.

Inherited from​

Asset.name


uuid​

uuid: `${string}-${string}-${string}-${string}-${string}`;

Asset UUID.

Inherited from​

Asset.uuid


assetType​

assetType: AssetType;

Asset type.

Inherited from​

Asset.assetType


baseColor​

baseColor: vec4;

Base color as an RGBA vec4.


baseColorMap?​

optional baseColorMap: `${string}-${string}-${string}-${string}-${string}`;

Base color texture UUID.


baseColorTransform​

baseColorTransform: TextureTransform;

Base color texture transform.


normalScale​

normalScale: number;

Normal scale.


normalMap?​

optional normalMap: `${string}-${string}-${string}-${string}-${string}`;

Normal texture UUID.


normalTransform​

normalTransform: TextureTransform;

Normal texture transform.


emission​

emission: vec3;

Emission color as an RGB vec3.


emissionIntensity​

emissionIntensity: number;

Emission intensity.


emissionMap?​

optional emissionMap: `${string}-${string}-${string}-${string}-${string}`;

Emission texture UUID.


emissionTransform​

emissionTransform: TextureTransform;

Emission texture transform.


metalness​

metalness: number;

Metalness value.


roughness​

roughness: number;

Roughness value.


metallicRoughnessMap?​

optional metallicRoughnessMap: `${string}-${string}-${string}-${string}-${string}`;

Metallic-roughness texture UUID.


metallicRoughnessTransform​

metallicRoughnessTransform: TextureTransform;

Metallic-roughness texture transform.


occlusionStrength​

occlusionStrength: number;

Occlusion strength.


occlusionMap?​

optional occlusionMap: `${string}-${string}-${string}-${string}-${string}`;

Occlusion texture UUID.


occlusionTransform​

occlusionTransform: TextureTransform;

Occlusion texture transform.


alphaMode​

alphaMode: AlphaMode;

Alpha mode.


alphaCutoff​

alphaCutoff: number;

Alpha cutoff value.