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

NameTypeAccessDescription
albedoVector3 | nullRead/WriteGets the albedo.
albedoTextureTextureBase | nullRead/WriteGets the albedo texture.
normalTextureTextureBase | nullRead/WriteGets the normal texture.
metallicFactornumberRead/WriteGets the metallic factor.
roughnessFactornumberRead/WriteGets the roughness factor.
metallicRoughnessTextureBase | nullRead/WriteGets the metallic roughness.
occlusionTextureTextureBase | nullRead/WriteGets the occlusion texture.
occlusionFactornumberRead/WriteGets the occlusion factor.
emissiveTextureTextureBase | nullRead/WriteGets the emissive texture.
emissiveColorVector3 | nullRead/WriteGets the emissive color.
transparencynumberRead/WriteGets the transparency.
MAP_SPECULAR``Read/WriteGets or sets the map specular.
MAP_DIFFUSE``Read/WriteGets or sets the map diffuse.
MAP_EMISSIVE``Read/WriteGets or sets the map emissive.
MAP_AMBIENT``Read/WriteGets or sets the map ambient.
MAP_NORMAL``Read/WriteGets or sets the map normal.
namestringRead/WriteGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
constructor(name: string | null, albedo: Vector3 | null)Creates a new PbrMaterial with an optional name and base albedo color
fromMaterial(material: Material)PbrMaterialReturns 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 | nullCalls 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 | nullCalls findProperty(propertyName) on this PbrMaterial instance.
getProperty(property: string)anyCalls getProperty(property) on this PbrMaterial instance.
setProperty(property: string, value: any)Sets the property value.
removeProperty(property: string | Property)booleanCalls removeProperty(property) on this PbrMaterial instance.
toString()stringCalls toString on this PbrMaterial instance.

See Also

 English