MetallicRoughnessPbrMaterial

The MetallicRoughnessPbrMaterial class encapsulates physically based materials.

Properties

PropertyDescription
baseColor
(get) (Not Available)
(set) baseColor: TextureBase


Specifies the baseColor texture of the material.
baseColorFactor
(get) (Not Available)
(set) baseColorFactor: ColorSignal

Specifies a ColorSignal for a base color factor. A ColorSignal may be created using the RGBA() and HSVA() methods of the Reactive module.
See Also: ReactiveModule.RGBA and ReactiveModule.HSVA.
baseColorTextureTransform
(get) baseColorTextureTransform: TextureTransform
(set) baseColorTextureTransform: TextureTransformSignal


Specifies the coordinates transform of the baseColorFactor texture of this material.
blendMode
(get) blendMode: Signal<MaterialsModule.BlendMode>
(set) blendMode: Signal<MaterialsModule.BlendMode>


Specifies the material blend mode.
emissive
(get) emissive: TextureBase
(set) emissive: TextureBase


Specifies the emissive texture of the material.
emissiveTextureTransform
(get) emissiveTextureTransform: TextureTransform
(set) emissiveTextureTransform: TextureTransformSignal


Specifies the coordinates transform of the emissive texture of this material.
metallicFactor
(get) metallicFactor: ScalarSignal
(set) metallicFactor: ScalarSignal

Specifies the metallic factor.
metallicRoughness
(get) (Not Available)
(set) metallicRoughness: TextureBase


Specifies the metallicRoughness texture of the material.
metallicRoughnessTextureTransform
(get) metallicRoughnessTextureTransform: TextureTransform
(set) metallicRoughnessTextureTransform: TextureTransformSignal


Specifies the coordinates transform of the metallicRoughness texture of this material.
roughnessFactor
(get) roughnessFactor: ScalarSignal
(set) roughnessFactor: ScalarSignal

Specifies the roughness factor.

Methods

MethodDescription
getBaseColor
getBaseColor(): Promise<TextureBase>


Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned.
getEmissive
getEmissive(): Promise<TextureBase>


Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned.
getMetallicRoughness
getMetallicRoughness(): Promise<TextureBase>


Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned.