The MetallicRoughnessPbrMaterial
class encapsulates physically based materials.
Inherits From : MaterialBase
Property | Description |
---|---|
baseColor | (get) (Not Available) Specifies the baseColor texture of the material. |
baseColorFactor | (get) 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.Note that RgbaSignal is always returned. See Also: ReactiveModule.RGBA and ReactiveModule.HSVA . |
baseColorTextureTransform | (get) baseColorTextureTransform: TextureTransform Specifies the coordinates transform of the baseColorFactor texture of this material. |
blendMode | (get) blendMode: StringSignal<MaterialsModule.BlendMode> Specifies the material blend mode. |
diffuseEnvironment | (get) (Not Available) Set a diffuse environment texture on this material. |
emissive | (get) (Not Available) Specifies the emissive texture of the material. |
emissiveColorFactor | (get) emissiveColorFactor: ColorSignal Specifies a ColorSignal for the emissive color factor.This value defines linear multipliers for the sampled texels of the emissive texture. A ColorSignal may be created using the RGBA() and HSVA() methods of the Reactive module.Note that RgbaSignal is always returned. See Also: ReactiveModule.RGBA and ReactiveModule.HSVA . |
emissiveTextureTransform | (get) emissiveTextureTransform: TextureTransform Specifies the coordinates transform of the emissive texture of this material. |
metallicFactor | (get) metallicFactor: ScalarSignal Specifies the metallic factor. |
metallicRoughness | (get) (Not Available) Specifies the metallicRoughness texture of the material. |
metallicRoughnessTextureTransform | (get) metallicRoughnessTextureTransform: TextureTransform Specifies the coordinates transform of the MetallicRoughness texture of this material. |
normalTextureScale | (get) normalTextureScale: ScalarSignal The scalar parameter applied to each normal vector of the texture. This value scales the normal vector in X and Y directions. |
normalTextureTransform | (get) normalTextureTransform: TextureTransform Specifies the coordinates transform of the normal texture of this material. |
occlusion | (get) (Not Available) Specifies the occlusion texture of the material. |
occlusionStrength | (get) occlusionStrength: ScalarSignal Specifies the occlusion strength. |
occlusionTextureTransform | (get) occlusionTextureTransform: TextureTransform Specifies the coordinates transform of the Occlusion texture of this material. |
roughnessFactor | (get) roughnessFactor: ScalarSignal Specifies the roughness factor. |
roughnessMetallic | (get) (Not Available) Specifies the RoughnessMetallic texture of the material. |
roughnessMetallicTextureTransform | (get) roughnessMetallicTextureTransform: TextureTransform Specifies the coordinates transform of the RoughnessMetallic texture of this material. |
specularEnvironment | (get) (Not Available) Set a specular environment texture on this material. |
staticEnvironmentRotation | (get) staticEnvironmentRotation: PointSignal Specifies the rotation signal to be used for transformations of static environment textures. |
Method | Description |
---|---|
getBaseColor | getBaseColor(): Promise<TextureBase | null> Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. |
getDiffuseEnvironment | getDiffuseEnvironment(): Promise<TextureBase | null> Returns a promise that is resolved with the diffuse environment texture associated with a given material or null if no texture was assigned. |
getEmissive | getEmissive(): Promise<TextureBase | null> 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 | null> Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. |
getNormal | getNormal(): Promise<TextureBase | null> Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. |
getOcclusion | getOcclusion(): Promise<TextureBase | null> Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. |
getRoughnessMetallic | getRoughnessMetallic(): Promise<TextureBase | null> Returns a promise that is resolved with the texture associated with a given material or null if no texture was assigned. |
getSpecularEnvironment | getSpecularEnvironment(): Promise<TextureBase | null> Returns a promise that is resolved with the specular environment texture associated with a given material or null if no texture was assigned. |
setNormal | setNormal(texture: TextureBase | null): Promise<void> Assign normal texture for this material. Returns a promise that is resolved when the texture is assigned. |