Class MaterialDecorator
This clase represent a material decorator. A Material Decorator wrap an existing material, and help users to access and change material properties.
Inheritance
MaterialDecorator
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class MaterialDecorator : BaseMaterialDecorator
Constructors
MaterialDecorator(Effect)
Initializes a new instance of the MaterialDecorator class.
Declaration
public MaterialDecorator(Effect effect)
Parameters
Type | Name | Description |
---|---|---|
Effect | effect | Material decorator effect. |
MaterialDecorator(Material)
Initializes a new instance of the MaterialDecorator class.
Declaration
public MaterialDecorator(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | Material instance. |
Properties
AllowInstancing
Gets or sets a value indicating whether this material allows instancing draw.
Declaration
public bool AllowInstancing { get; set; }
Property Value
Type | Description |
---|---|
bool |
Id
Gets or sets the material ID.
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid |
LayerDescription
Gets or sets the layer description.
Declaration
public RenderLayerDescription LayerDescription { get; set; }
Property Value
Type | Description |
---|---|
RenderLayerDescription |
Material
Gets the material.
Declaration
public Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
OrderBias
Gets or sets the order bias of the material. This value is used to modify the rendering order of the meshes.
Declaration
[RenderPropertyAsInput(-512, 511, AsSlider = true, DesiredChange = 1, DesiredLargeChange = 5)]
public int OrderBias { get; set; }
Property Value
Type | Description |
---|---|
int |