PbrSpecularMaterial
Overview
PbrSpecularMaterial is a class in Aspose.3D FOSS for .NET.
Inherits from: Material.
Material for physically based rendering based on diffuse color/specular/glossiness
This class provides 10 methods for working with PbrSpecularMaterial objects in .NET programs.
Available methods include: A3DObject, FindProperty, GetEnumerator, GetProperty, GetTexture, PbrSpecularMaterial, RemoveProperty, SetProperty, SetTexture, ToString.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Diffuse, DiffuseTexture, EmissiveColor, EmissiveTexture, GlossinessFactor, MapAmbient, and 11 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Transparency | double | Read/Write | Gets or sets the transparency factor. |
NormalTexture | TextureBase | Read/Write | Gets or sets the texture of normal mapping |
SpecularGlossinessTexture | TextureBase | Read/Write | Gets or sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness. |
GlossinessFactor | double | Read/Write | Gets or sets the glossiness(smoothness) of the material, 1 means perfectly smooth and 0 means perfectly rough, default value is 1, range is [0, 1] |
Specular | Vector3 | Read/Write | Gets or sets the specular color of the material, default value is (1, 1, 1). |
DiffuseTexture | TextureBase | Read/Write | Gets or sets the texture for diffuse color. |
Diffuse | Vector3 | Read/Write | Gets or sets the diffuse color of the material, default value is (1, 1, 1). |
EmissiveTexture | TextureBase | Read/Write | Gets or sets the texture for emissive color. |
EmissiveColor | Vector3 | Read/Write | Gets or sets the emissive color, default value is (0, 0, 0). |
MapSpecularGlossiness | string | Read | Used in GetTexture/SetTexture to assign a specular glossiness texture mapping. |
MapSpecular | string | Read | Used in GetTexture/SetTexture to assign a specular texture mapping. |
MapDiffuse | string | Read | Used in GetTexture/SetTexture to assign a diffuse texture mapping. |
MapEmissive | string | Read | Used in GetTexture/SetTexture to assign a emissive texture mapping. |
MapAmbient | string | Read | Used in GetTexture/SetTexture to assign a ambient texture mapping. |
MapNormal | string | Read | Used in GetTexture/SetTexture to assign a normal texture mapping. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the collection of all properties. |
Methods
| Signature | Description |
|---|---|
PbrSpecularMaterial() | Constructor of the |
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. |
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. |