Class PbrSpecularMaterial

PbrSpecularMaterial class

Material for physically based rendering based on diffuse color/specular/glossiness

public class PbrSpecularMaterial : Material

Constructors

NameDescription
PbrSpecularMaterial()Constructor of the PbrSpecularMaterial

Properties

NameDescription
Diffuse { get; set; }Gets or sets the diffuse color of the material, default value is (1, 1, 1)
DiffuseTexture { get; set; }Gets or sets the texture for diffuse
EmissiveColor { get; set; }Gets or sets the emissive color, default value is (0, 0, 0)
EmissiveTexture { get; set; }Gets or sets the texture for emissive
GlossinessFactor { get; set; }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]
virtual Name { get; set; }Gets or sets the name.
NormalTexture { get; set; }Gets or sets the texture of normal mapping
Properties { get; }Gets the collection of all properties.
Specular { get; set; }Gets or sets the specular color of the material, default value is (1, 1, 1).
SpecularGlossinessTexture { get; set; }Gets or sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.
Transparency { get; set; }Gets or sets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped.

Methods

NameDescription
FindProperty(string)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
GetEnumerator()Gets the enumerator to enumerate internal texture slots.
GetProperty(string)Get the value of specified property
GetTexture(string)Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name
RemoveProperty(Property)Removes a dynamic property.
RemoveProperty(string)Remove the specified property identified by name
SetProperty(string, object)Sets the value of specified property
SetTexture(string, TextureBase)Sets the texture to specified slot
override ToString()Formats object to string

Fields

NameDescription
const MapSpecularGlossinessThe texture map for specular glossiness

See Also