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 14 methods for working with PbrMaterial objects in .NET programs. Available methods include: A3DObject, FindProperty, FromMaterial, GetEnumerator, GetProperty, GetTexture, 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 factor.
NormalTextureTextureBaseRead/WriteGets or sets the texture of normal mapping
SpecularTextureTextureBaseRead/WriteGets or sets the texture for specular color
AlbedoTextureTextureBaseRead/WriteGets or sets the texture for albedo
AlbedoVector3Read/WriteGets or sets the base color of the material
OcclusionTextureTextureBaseRead/WriteGets or sets the texture for ambient occlusion
OcclusionFactordoubleRead/WriteGets or sets the factor of ambient occlusion
MetallicFactordoubleRead/WriteGets or sets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric.
RoughnessFactordoubleRead/WriteGets or sets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth
MetallicRoughnessTextureBaseRead/WriteGets or sets the texture for metallic(in R channel) and roughness(in G channel)
EmissiveTextureTextureBaseRead/WriteGets or sets the texture for emissive
EmissiveColorVector3Read/WriteGets or sets the emissive color
MapSpecularstringReadUsed in GetTexture/SetTexture to assign a specular texture mapping.
MapDiffusestringReadUsed in GetTexture/SetTexture to assign a diffuse texture mapping.
MapEmissivestringReadUsed in GetTexture/SetTexture to assign a emissive texture mapping.
MapAmbientstringReadUsed in GetTexture/SetTexture to assign a ambient texture mapping.
MapNormalstringReadUsed in GetTexture/SetTexture to assign a normal texture mapping.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the collection of all properties.

Methods

SignatureDescription
PbrMaterial()Construct a default PBR material instance
PbrMaterial(albedo: Vector3)Construct a default PBR material with specified albedo color value.
FromMaterial(material: Material)Allow convert other material to PbrMaterial The source material A new PbrMaterial instance
GetTexture(slotName: string)///
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()Initializes a new instance of the A3DObject class with no name.
A3DObject(name: string)Initializes a new instance of the A3DObject class.
RemoveProperty(property: Property)Removes a dynamic property.
RemoveProperty(property: string)Remove the specified property identified by name
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.

See Also

 English