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
| Name | Type | Access | Description |
|---|---|---|---|
Transparency | double | Read/Write | Gets or sets the transparency. |
NormalTexture | TextureBase | Read/Write | Gets or sets the normal texture. |
SpecularTexture | TextureBase | Read/Write | Gets or sets the specular texture. |
AlbedoTexture | TextureBase | Read/Write | Gets or sets the albedo texture. |
Albedo | Vector3 | Read/Write | Gets or sets the albedo. |
OcclusionTexture | TextureBase | Read/Write | Gets or sets the occlusion texture. |
OcclusionFactor | double | Read/Write | Gets or sets the occlusion factor. |
MetallicFactor | double | Read/Write | Gets or sets the metallic factor. |
RoughnessFactor | double | Read/Write | Gets or sets the roughness factor. |
MetallicRoughness | TextureBase | Read/Write | Gets or sets the metallic roughness. |
EmissiveTexture | TextureBase | Read/Write | Gets or sets the emissive texture. |
EmissiveColor | Vector3 | Read/Write | Gets or sets the emissive color. |
MapSpecular | string | Read | Gets the map specular. |
MapDiffuse | string | Read | Gets the map diffuse. |
MapEmissive | string | Read | Gets the map emissive. |
MapAmbient | string | Read | Gets the map ambient. |
MapNormal | string | Read | Gets the map normal. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
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) |