Search Results for

    Show / Hide Table of Contents

    Class MaterialInfoPart

    This class represents a material info asset part.

    Inheritance
    object
    IdentifiableObject
    AssetPart
    MaterialInfoPart
    Inherited Members
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Framework.Assets.AssetParts
    Assembly: Evergine.Framework.dll
    Syntax
    public class MaterialInfoPart : AssetPart

    Fields

    ActiveDirectives

    The active material directives.

    Declaration
    public string[] ActiveDirectives
    Field Value
    Type Description
    string[]

    AllowInstancing

    Gets or sets a value indicating whether this material allows instancing.

    Declaration
    public bool AllowInstancing
    Field Value
    Type Description
    bool

    EffectID

    The effect ID.

    Declaration
    public Guid EffectID
    Field Value
    Type Description
    Guid

    Layer

    The layer ID.

    Declaration
    public Guid Layer
    Field Value
    Type Description
    Guid

    OrderBias

    This value is used to modify the rendering order of meshes.

    Declaration
    public int OrderBias
    Field Value
    Type Description
    int

    Parameters

    The material parameters.

    Declaration
    public MaterialParameter[] Parameters
    Field Value
    Type Description
    MaterialParameter[]

    Samplers

    The sampler links.

    Declaration
    public SamplerLink[] Samplers
    Field Value
    Type Description
    SamplerLink[]

    Textures

    The texture links.

    Declaration
    public TextureLink[] Textures
    Field Value
    Type Description
    TextureLink[]

    Methods

    FromMaterial(Material)

    Creates a new material info part from a material.

    Declaration
    public static MaterialInfoPart FromMaterial(Material material)
    Parameters
    Type Name Description
    Material material

    The material.

    Returns
    Type Description
    MaterialInfoPart

    The material info part.

    Read(BinaryReader)

    Reads this asset part.

    Declaration
    public static MaterialInfoPart Read(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The binary reader.

    Returns
    Type Description
    MaterialInfoPart

    The loaded asset part.

    Write(BinaryWriter)

    Writes the sub-asset.

    Declaration
    public override void Write(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    The stream.

    Overrides
    AssetPart.Write(BinaryWriter)

    Extension Methods

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