Material |
public class MaterialWithUniformColor : MaterialBase
The MaterialWithUniformColor type exposes the following members.
Name | Description | |
---|---|---|
MaterialWithUniformColor(NamedColor) | Initializes a new instance of the MaterialWithUniformColor class with the provided color and with default specular properties. | |
MaterialWithUniformColor(NamedColor, Double, Double) | Initializes a new instance of the MaterialWithUniformColor class with the provided color and specular properties. | |
MaterialWithUniformColor(NamedColor, Double, Double, Double) | Initializes a new instance of the MaterialWithUniformColor class with the provided color and specular properties. |
Name | Description | |
---|---|---|
Color |
Gets the diffuse color of the material.
(Overrides MaterialBaseColor) | |
HasColor |
Gets a value indicating whether this instance has a color by itself.
(Overrides MaterialBaseHasColor) | |
HasTexture |
Gets a value indicating whether this instance has texture.
(Overrides MaterialBaseHasTexture) | |
IndexOfRefraction | (Inherited from MaterialBase) | |
IsVisible | (Overrides MaterialBaseIsVisible) | |
Metalness |
Mixing coefficient for specular reflection: value between 0 and 1.
If 0, the reflected specular light is multiplied with the material diffuse color
If 1, the reflected specular light has the same color as the incident light (thus as if it is reflected at a white surface)
(Inherited from MaterialBase) | |
PhongModelDiffuseIntensity | (Inherited from MaterialBase) | |
PhongModelSpecularExponent | (Inherited from MaterialBase) | |
PhongModelSpecularIntensity |
Gets the specular intensity normalized for phong model. This is the expression SpecularIntensity*(1+SpecularExponent).
This pre-factor in the Phong equation ensures that the total light intensity reflected in all directions of the half sphere will not change when changing the SpecularExponent.
(Inherited from MaterialBase) | |
Smoothness |
The smothness value, a value in the range [0,1]. A value of 0 defines a rough diffuse surface, and a value of 1 a very shiny surface.
(Inherited from MaterialBase) |
Name | Description | |
---|---|---|
Equals(IMaterial) | Indicates whether the current object is equal to another object of the same type. (Overrides MaterialBaseEquals(IMaterial)) | |
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | (Overrides ObjectGetHashCode) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
HasSameSpecularPropertiesAs |
Determines whether this material has the same specular properties as the material provided in anotherMaterial.
(Inherited from MaterialBase) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ToString | Returns a string that represents the current object. (Inherited from Object) | |
VerifyIndexOfRefraction |
Verifies the specular mixing coefficient to be in the range [0, 1].
(Inherited from MaterialBase) | |
VerifyMetalness |
Verifies the metalness to be in the range [0, 1].
(Inherited from MaterialBase) | |
VerifySmoothness |
Verifies the smothness to be in the range [0,1]
(Inherited from MaterialBase) | |
WithColor |
Gets a new instance of this material with the color set to the provided values. Material classes that don't support
color should not throw an exception, but simply return the same instance.
(Overrides MaterialBaseWithColor(NamedColor)) | |
WithIndexOfRefraction |
Gets a new instance of the material with the specular mixing coefficient set to the provided value.
(Inherited from MaterialBase) | |
WithMetalness |
Gets a new instance of the material with the specular mixing coefficient set to the provided value.
(Inherited from MaterialBase) | |
WithSmoothness |
Gets a new instance of the material with the smothness set to the provided value.
(Inherited from MaterialBase) | |
WithSpecularProperties |
Gets a new instance of this material with all specular properties set to the provided values.
(Inherited from MaterialBase) | |
WithSpecularPropertiesAs |
Returns a new material based on this material, but with all specular properties taken from the template material provided in templateMaterial.
(Inherited from MaterialBase) |
Name | Description | |
---|---|---|
_indexOfRefraction |
The index of refraction. i.e. a value between 1 and infinity.
(Inherited from MaterialBase) | |
_metalness |
Value between 0 and 1. A value of 0 indicates a plastic like surface, a value of 1 a metal like surface.
If 0, the reflected specular light has the same color as the incident light (thus as if it is reflected at a white surface). This is the behaviour of plastic surfaces.
If 1, the reflected specular light is multiplied with the material diffuse color. This is the behaviour of metals like gold.
(Inherited from MaterialBase) | |
_smoothness |
A value between 0 and 1. A value of 0 defines a rough surface, a value of 1 a very shiny one.
(Inherited from MaterialBase) |