PbrMaterial

Overview

PbrMaterial is a class in Aspose.3D FOSS for .NET. Inherits from: Material.

Material for physically based rendering based on albedo color/metallic/roughness

This class provides 12 methods for working with PbrMaterial objects in .NET programs. Available methods include: A3DObject, FindProperty, FromMaterial, GetEnumerator, GetProperty, GetTexture, Material, PbrMaterial, RemoveProperty, SetProperty, SetTexture, ToString. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: Albedo, AlbedoTexture, EmissiveColor, EmissiveTexture, MapAmbient, MapDiffuse, and 13 more.

Properties

NameTypeAccessDescription
TransparencydoubleRead/WriteGets or sets the transparency.
NormalTextureTextureBaseRead/WriteGets or sets the normal texture.
SpecularTextureTextureBaseRead/WriteGets or sets the specular texture.
AlbedoTextureTextureBaseRead/WriteGets or sets the albedo texture.
AlbedoVector3Read/WriteGets or sets the albedo.
OcclusionTextureTextureBaseRead/WriteGets or sets the occlusion texture.
OcclusionFactordoubleRead/WriteGets or sets the occlusion factor.
MetallicFactordoubleRead/WriteGets or sets the metallic factor.
RoughnessFactordoubleRead/WriteGets or sets the roughness factor.
MetallicRoughnessTextureBaseRead/WriteGets or sets the metallic roughness.
EmissiveTextureTextureBaseRead/WriteGets or sets the emissive texture.
EmissiveColorVector3Read/WriteGets or sets the emissive color.
MapSpecularstringReadGets the map specular.
MapDiffusestringReadGets the map diffuse.
MapEmissivestringReadGets the map emissive.
MapAmbientstringReadGets the map ambient.
MapNormalstringReadGets the map normal.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
PbrMaterial()Creates a new PbrMaterial instance with default values
PbrMaterial(albedo: Vector3)The albedo color
FromMaterial(material: Material)A new PbrMaterial instance
Material()
GetTexture(slotName: string)Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name.
SetTexture(slotName: string, texture: TextureBase)Sets the texture to specified slot.
ToString()Formats object to string.
GetEnumerator()Gets the enumerator to enumerate internal texture slots.
A3DObject()
RemoveProperty(property: Property)Removes a dynamic property.
GetProperty(property: string)Get the value of specified property
SetProperty(property: string, value: object?)Sets the value of specified property
FindProperty(propertyName: string)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

See Also