PbrSpecularMaterial

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

NameTypeAccessDescription
TransparencydoubleRead/WriteGets or sets the transparency factor.
NormalTextureTextureBaseRead/WriteGets or sets the texture of normal mapping
SpecularGlossinessTextureTextureBaseRead/WriteGets or sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.
GlossinessFactordoubleRead/WriteGets 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]
SpecularVector3Read/WriteGets or sets the specular color of the material, default value is (1, 1, 1).
DiffuseTextureTextureBaseRead/WriteGets or sets the texture for diffuse color.
DiffuseVector3Read/WriteGets or sets the diffuse color of the material, default value is (1, 1, 1).
EmissiveTextureTextureBaseRead/WriteGets or sets the texture for emissive color.
EmissiveColorVector3Read/WriteGets or sets the emissive color, default value is (0, 0, 0).
MapSpecularGlossinessstringReadUsed in GetTexture/SetTexture to assign a specular glossiness texture mapping.
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
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.

See Also

 English