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.(Inherited from A3DObject.)
NormalTexture { get; set; }Gets or sets the texture of normal mapping
Properties { get; }Gets the collection of all properties.(Inherited from A3DObject.)
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)(Inherited from A3DObject.)
GetEnumerator()Gets the enumerator to enumerate internal texture slots.(Inherited from Material.)
GetProperty(string)Get the value of specified property(Inherited from A3DObject.)
GetTexture(string)Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name(Inherited from Material.)
RemoveProperty(Property)Removes a dynamic property.(Inherited from A3DObject.)
RemoveProperty(string)Remove the specified property identified by name(Inherited from A3DObject.)
SetProperty(string, object)Sets the value of specified property(Inherited from A3DObject.)
SetTexture(string, TextureBase)Sets the texture to specified slot(Inherited from Material.)
override ToString()Formats object to string(Inherited from Material.)

Fields

NameDescription
const MapSpecularGlossinessThe texture map for specular glossiness

See Also