Class PhongMaterial

PhongMaterial class

Material for blinn-phong shading model.

public class PhongMaterial : LambertMaterial

Constructors

NameDescription
PhongMaterial()Initializes a new instance of the PhongMaterial class.
PhongMaterial(string)Initializes a new instance of the PhongMaterial class.

Properties

NameDescription
AmbientColor { get; set; }Gets or sets the ambient color(Inherited from LambertMaterial.)
DiffuseColor { get; set; }Gets or sets the diffuse color(Inherited from LambertMaterial.)
EmissiveColor { get; set; }Gets or sets the emissive color(Inherited from LambertMaterial.)
virtual Name { get; set; }Gets or sets the name.(Inherited from A3DObject.)
Properties { get; }Gets the collection of all properties.(Inherited from A3DObject.)
ReflectionColor { get; set; }Gets or sets the reflection color.
ReflectionFactor { get; set; }Gets or sets the attenuation of the reflection color.
Shininess { get; set; }Gets or sets the shininess, this controls the specular highlight’s size. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess
SpecularColor { get; set; }Gets or sets the specular color.
SpecularFactor { get; set; }Gets or sets the specular factor. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess
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.(Inherited from LambertMaterial.)
TransparentColor { get; set; }Gets or sets the transparent color.(Inherited from LambertMaterial.)

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.)

See Also