PbrMaterial
Overview
PbrMaterial is a class in Aspose.3D FOSS for TypeScript.
Inherits from: Material.
PbrMaterial.constructor creates a new PbrMaterial with an optional name and base albedo color.
This class declares 11 methods for PbrMaterial objects in TypeScript programs.
Available methods include: constructor, findProperty, fromMaterial, getProperty, getTexture, removeProperty, setProperty, setTexture, toString.
Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package.
Properties: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, albedo, and 12 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
albedo | Vector3 | null | Read/Write | Gets the albedo. |
albedoTexture | TextureBase | null | Read/Write | Gets the albedo texture. |
normalTexture | TextureBase | null | Read/Write | Gets the normal texture. |
metallicFactor | number | Read/Write | Gets the metallic factor. |
roughnessFactor | number | Read/Write | Gets the roughness factor. |
metallicRoughness | TextureBase | null | Read/Write | Gets the metallic roughness. |
occlusionTexture | TextureBase | null | Read/Write | Gets the occlusion texture. |
occlusionFactor | number | Read/Write | Gets the occlusion factor. |
emissiveTexture | TextureBase | null | Read/Write | Gets the emissive texture. |
emissiveColor | Vector3 | null | Read/Write | Gets the emissive color. |
transparency | number | Read/Write | Gets the transparency. |
MAP_SPECULAR | `` | Read/Write | Gets or sets the map specular. |
MAP_DIFFUSE | `` | Read/Write | Gets or sets the map diffuse. |
MAP_EMISSIVE | `` | Read/Write | Gets or sets the map emissive. |
MAP_AMBIENT | `` | Read/Write | Gets or sets the map ambient. |
MAP_NORMAL | `` | Read/Write | Gets or sets the map normal. |
name | string | Read/Write | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
constructor(name: string | null, albedo: Vector3 | null) | Creates a new PbrMaterial with an optional name and base albedo color |
fromMaterial(material: Material) → PbrMaterial | Returns a PbrMaterial initialized from the properties of an existing Material |
constructor(name: string | null) | Calls constructor(name) on this PbrMaterial instance. |
getTexture(_slotName: string) → TextureBase | null | Calls getTexture(_slotName) on this PbrMaterial instance. |
setTexture(_slotName: string, _texture: TextureBase) | Sets the texture value. |
constructor(name: string) | Calls constructor(name) on this PbrMaterial instance. |
findProperty(propertyName: string) → Property | null | Calls findProperty(propertyName) on this PbrMaterial instance. |
getProperty(property: string) → any | Calls getProperty(property) on this PbrMaterial instance. |
setProperty(property: string, value: any) | Sets the property value. |
removeProperty(property: string | Property) → boolean | Calls removeProperty(property) on this PbrMaterial instance. |
toString() → string | Calls toString on this PbrMaterial instance. |