Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    MaterialDescriptor Class

    Namespace: Stride.Rendering.Materials
    Assembly: Stride.Rendering.dll

    A descriptor of a Material.

    System.Object → MaterialDescriptor
    Derived from MaterialDescriptor:

    [DataSerializerGlobal(typeof(ReferenceSerializer<MaterialDescriptor>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
    [ContentSerializer(typeof(DataContentSerializer<MaterialDescriptor>))]
    [DataContract("MaterialDescriptor")]
    public class MaterialDescriptor : IMaterialDescriptor, IMaterialShaderGenerator
    Name Description
    Constructors
    MaterialDescriptor()

    Initializes a new instance of the MaterialDescriptor class.

    Properties
    Attributes

    Gets or sets the material attributes.

    Layers

    Gets or sets the material compositor.

    MaterialId
    Methods
    Visit(MaterialGeneratorContext)
    | Improve this Doc View Source

    Constructors


    MaterialDescriptor()

    Initializes a new instance of the MaterialDescriptor class.

    public MaterialDescriptor()
    | Improve this Doc View Source

    Properties


    Attributes

    Gets or sets the material attributes.

    [DataMember(10)]
    [Display("Attributes", null, Expand = ExpandRule.Always)]
    public MaterialAttributes Attributes { get; set; }
    Property Value
    Type Description
    MaterialAttributes

    The material attributes.


    Layers

    Gets or sets the material compositor.

    [DataMember(20)]
    public MaterialBlendLayers Layers { get; set; }
    Property Value
    Type Description
    MaterialBlendLayers

    The material compositor.


    MaterialId

    public AssetId MaterialId { get; set; }
    Property Value
    Type Description
    AssetId
    | Improve this Doc View Source

    Methods


    Visit(MaterialGeneratorContext)

    public void Visit(MaterialGeneratorContext context)
    Parameters
    Type Name Description
    MaterialGeneratorContext context

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation