The MetallicRoughnessPbrMaterial
class encapsulates physically based materials.
Inherits From : MaterialBase
Property | Description |
---|---|
| (get) (Not Available) Specifies the baseColor texture of the material. |
| (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 . |
| (get) baseColorTextureTransform: TextureTransform Specifies the coordinates transform of the baseColorFactor texture of this material. |
| (get) blendMode: StringSignal<MaterialsModule.BlendMode> Specifies the material blend mode. |
| (get) (Not Available) Set a diffuse environment texture on this material. |
| (get) (Not Available) Specifies the emissive texture of the material. |
| (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 . |
| (get) emissiveTextureTransform: TextureTransform Specifies the coordinates transform of the emissive texture of this material. |
| (get) metallicFactor: ScalarSignal Specifies the metallic factor. |
| (get) (Not Available) Specifies the metallicRoughness texture of the material. |
| (get) metallicRoughnessTextureTransform: TextureTransform Specifies the coordinates transform of the MetallicRoughness texture of this material. |
| (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. |
| (get) normalTextureTransform: TextureTransform Specifies the coordinates transform of the normal texture of this material. |
| (get) (Not Available) Specifies the occlusion texture of the material. |
| (get) occlusionStrength: ScalarSignal Specifies the occlusion strength. |
| (get) occlusionTextureTransform: TextureTransform Specifies the coordinates transform of the Occlusion texture of this material. |
| (get) roughnessFactor: ScalarSignal Specifies the roughness factor. |
| (get) (Not Available) Specifies the RoughnessMetallic texture of the material. |
| (get) roughnessMetallicTextureTransform: TextureTransform Specifies the coordinates transform of the RoughnessMetallic texture of this material. |
| (get) (Not Available) Set a specular environment texture on this material. |
| (get) staticEnvironmentRotation: PointSignal Specifies the rotation signal to be used for transformations of static environment textures. |
Method | Description |
---|---|
| 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(): 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(): 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(): 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(): 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(): 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(): 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(): 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(texture: TextureBase | null): Promise<void> Assign normal texture for this material. Returns a promise that is resolved when the texture is assigned. |