Click or drag to resize

MaterialBase Methods

The MaterialBase type exposes the following members.

Methods
 NameDescription
Public methodEquals(IMaterial)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasSameSpecularPropertiesAs Determines whether this material has the same specular properties as the material provided in anotherMaterial.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodVerifyIndexOfRefraction Verifies the specular mixing coefficient to be in the range [0, 1].
Protected methodVerifyMetalness Verifies the metalness to be in the range [0, 1].
Protected methodVerifySmoothness Verifies the smothness to be in the range [0,1]
Public methodWithColor 
Public methodWithIndexOfRefraction Gets a new instance of the material with the specular mixing coefficient set to the provided value.
Public methodWithMetalness Gets a new instance of the material with the specular mixing coefficient set to the provided value.
Public methodWithSmoothness Gets a new instance of the material with the smothness set to the provided value.
Public methodWithSpecularProperties Gets a new instance of this material with all specular properties set to the provided values.
Public methodWithSpecularPropertiesAs Returns a new material based on this material, but with all specular properties taken from the template material provided in templateMaterial.
Top
See Also