DefaultMaterial

The DefaultMaterial class encapsulates an image-based material.

Properties

PropertyDescription
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.
multiply
(get) multiply: TextureBase
(set) multiply: TextureBase


Specifies the multiplicative texture of the material. This can be used for masking and other purposes.
multiplyTextureTransform
(get) multiplyTextureTransform: TextureTransform
(set) multiplyTextureTransform: TextureTransformSignal


Specifies the coordinates transform of the multiplicative texture of this material.
reflective
(get) reflective: TextureBase
(set) reflective: TextureBase


Specifies the reflective texture of the material.

Methods

MethodDescription
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.
getMultiply
getMultiply(): Promise<TextureBase>


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


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