Material Class |
public abstract class Material : SharedDXDeviceResource
The Material type exposes the following members.
Name | Description | |
---|---|---|
Effect | Gets or sets the Effect that is used to render this material. | |
PreferedShaderQuality | Gets or sets a shader quality that should be used to render this material. When this property is set to any other value than Undefined (by default) it overrides the ShaderQuality setting set in GraphicsProfile. | |
Version | Gets the version number of this Material. Version is increased each time the material is changed. Note: When material is changed a lot of times, the Version value can overflow from positive to negative numbers (to prevent problems do not check for bigger value but for not equal value) |
Name | Description | |
---|---|---|
Clone | Clones the current material with creating a shallow copy of this Material (properties are copied but referenced objects are preserved). | |
GetDefaultRenderingQueue | Returns the RenderingQueue that should be used to render this material. The default method implementation returns TransparentRenderingQueue or OtherGeometryRenderingQueue based on the HasTransparency value. | |
Refresh | Refresh method regenerates the material and the resources it created. | |
ToString |
ToString
(Overrides ObjectToString) |
Name | Description | |
---|---|---|
MaterialChanged | MaterialChanged |