Click or drag to resize
Ab4d.SharpEngine logo

Material Properties

The Material type exposes the following members.

Properties
 NameDescription
Public propertyEffect Gets or sets the Effect that is used to render this material.
Public propertyMaterialBlockIndex Indexed of the memory block that holds the material data at MaterialIndex. This value may be set only by the effect that will render this material (this is done by calling protected SetMaterialBlock(Int32, Int32) method).
Public propertyMaterialIndex An index within the material buffer that contains the data for the shader. This value may be set only by the effect that will render this material (this is done by calling protected SetMaterialBlock(Int32, Int32) method).
Public propertyVersion 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)
Top
See Also