Search Results for

    Show / Hide Table of Contents

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

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX