Search Results for

    Show / Hide Table of Contents

    Class MaterialDecorator

    This class represents a material decorator. A Material Decorator wraps an existing material and helps users to access and change material properties.

    Inheritance
    object
    BaseMaterialDecorator
    MaterialDecorator
    LineEffect
    ParticlesEffect
    AtmosphericMaterial
    AtmosphericQuadMaterial
    BackgroundImageEffect
    BillboardMaterial
    LineBatch
    RenderQuad
    SDFText
    SkinMaterial
    SkyboxMaterial
    SpriteBatchMaterial
    StandardMaterial
    Inherited Members
    BaseMaterialDecorator.material
    BaseMaterialDecorator.ActiveDirectivesNames
    BaseMaterialDecorator.Effect
    BaseMaterialDecorator.GetMaterialPassResources(string, bool)
    BaseMaterialDecorator.Prepare(CommandBuffer)
    BaseMaterialDecorator.Dispose()
    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

    The effect for the material decorator.

    MaterialDecorator(Material)

    Initializes a new instance of the MaterialDecorator class.

    Declaration
    public MaterialDecorator(Material material)
    Parameters
    Type Name Description
    Material material

    An instance of the material.

    Properties

    AllowInstancing

    Gets or sets a value indicating whether this material allows instanced drawing.

    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 description of the layer.

    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 mesh.

    Declaration
    [RenderPropertyAsInput(-512, 511, AsSlider = true, DesiredChange = 1, DesiredLargeChange = 5)]
    public int OrderBias { get; set; }
    Property Value
    Type Description
    int

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX