Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialAttributes Class

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

    Common material attributes.

    System.Object → MaterialAttributes
    Derived from MaterialAttributes:

    [DataContract("MaterialAttributes")]
    [Display("Material attributes", null)]
    [CategoryOrder(5, "Geometry")]
    [CategoryOrder(10, "Shading")]
    [CategoryOrder(15, "Misc")]
    public class MaterialAttributes : IMaterialAttributes, IMaterialFeature, IMaterialShaderGenerator
    Name Description
    Constructors
    MaterialAttributes()

    Initializes a new instance of the MaterialAttributes class.

    Properties
    ClearCoat

    Gets or sets the clear coat shading features for the material.

    CullMode

    Gets or sets the cull mode used for the material.

    Diffuse

    Gets or sets the diffuse.

    DiffuseModel

    Gets or sets the diffuse model.

    Displacement

    Gets or sets the displacement.

    Emissive

    Gets or sets the emissive.

    Enabled

    Gets or sets a value indicating whether this MaterialAttributes is enabled.

    MicroSurface

    Gets or sets the micro surface.

    Occlusion

    Gets or sets the occlusion.

    Overrides

    Gets or sets the overrides.

    Specular

    Gets or sets the specular.

    SpecularModel

    Gets or sets the specular model.

    SubsurfaceScattering
    Surface

    Gets or sets the surface.

    Tessellation

    Gets or sets the tessellation.

    Transparency

    Gets or sets the transparency.

    Methods
    Visit(MaterialGeneratorContext)
    | Improve this Doc View Source

    Constructors


    MaterialAttributes()

    Initializes a new instance of the MaterialAttributes class.

    public MaterialAttributes()
    | Improve this Doc View Source

    Properties


    ClearCoat

    Gets or sets the clear coat shading features for the material.

    [Display("Clear Coat", "Misc")]
    [DataMember(140)]
    public IMaterialClearCoatFeature ClearCoat { get; set; }
    Property Value
    Type Description
    IMaterialClearCoatFeature

    CullMode

    Gets or sets the cull mode used for the material.

    [Display("Cull Mode", "Misc")]
    [DataMember(130)]
    public CullMode CullMode { get; set; }
    Property Value
    Type Description
    CullMode

    Diffuse

    Gets or sets the diffuse.

    [Display("Diffuse", "Shading", Expand = ExpandRule.Once)]
    [DataMember(50)]
    public IMaterialDiffuseFeature Diffuse { get; set; }
    Property Value
    Type Description
    IMaterialDiffuseFeature

    The diffuse.


    DiffuseModel

    Gets or sets the diffuse model.

    [Display("Diffuse Model", "Shading")]
    [DataMember(60)]
    public IMaterialDiffuseModelFeature DiffuseModel { get; set; }
    Property Value
    Type Description
    IMaterialDiffuseModelFeature

    The diffuse model.


    Displacement

    Gets or sets the displacement.

    [Display("Displacement", "Geometry")]
    [DataMember(20)]
    public IMaterialDisplacementFeature Displacement { get; set; }
    Property Value
    Type Description
    IMaterialDisplacementFeature

    The displacement.


    Emissive

    Gets or sets the emissive.

    [Display("Emissive", "Shading")]
    [DataMember(100)]
    public IMaterialEmissiveFeature Emissive { get; set; }
    Property Value
    Type Description
    IMaterialEmissiveFeature

    The emissive.


    Enabled

    Gets or sets a value indicating whether this MaterialAttributes is enabled.

    [DataMember(-20)]
    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if enabled; otherwise, false.


    MicroSurface

    Gets or sets the micro surface.

    [Display("MicroSurface", "Geometry", Expand = ExpandRule.Once)]
    [DataMember(40)]
    public IMaterialMicroSurfaceFeature MicroSurface { get; set; }
    Property Value
    Type Description
    IMaterialMicroSurfaceFeature

    The micro surface.


    Occlusion

    Gets or sets the occlusion.

    [Display("Occlusion", "Misc")]
    [DataMember(90)]
    public IMaterialOcclusionFeature Occlusion { get; set; }
    Property Value
    Type Description
    IMaterialOcclusionFeature

    The occlusion.


    Overrides

    Gets or sets the overrides.

    [Display("Overrides", "Misc")]
    [DataMember(120)]
    public MaterialOverrides Overrides { get; }
    Property Value
    Type Description
    MaterialOverrides

    The overrides.


    Specular

    Gets or sets the specular.

    [Display("Specular", "Shading", Expand = ExpandRule.Once)]
    [DataMember(70)]
    public IMaterialSpecularFeature Specular { get; set; }
    Property Value
    Type Description
    IMaterialSpecularFeature

    The specular.


    SpecularModel

    Gets or sets the specular model.

    [Display("Specular model", "Shading", Expand = ExpandRule.Once)]
    [DataMember(80)]
    public IMaterialSpecularModelFeature SpecularModel { get; set; }
    Property Value
    Type Description
    IMaterialSpecularModelFeature

    The specular model.


    SubsurfaceScattering

    [Display("Subsurface Scattering", "Shading")]
    [DataMember(105)]
    public IMaterialSubsurfaceScatteringFeature SubsurfaceScattering { get; set; }
    Property Value
    Type Description
    IMaterialSubsurfaceScatteringFeature

    Surface

    Gets or sets the surface.

    [Display("Surface", "Geometry")]
    [DataMember(30)]
    public IMaterialSurfaceFeature Surface { get; set; }
    Property Value
    Type Description
    IMaterialSurfaceFeature

    The surface.


    Tessellation

    Gets or sets the tessellation.

    [Display("Tessellation", "Geometry")]
    [DataMember(10)]
    public IMaterialTessellationFeature Tessellation { get; set; }
    Property Value
    Type Description
    IMaterialTessellationFeature

    The tessellation.


    Transparency

    Gets or sets the transparency.

    [Display("Transparency", "Misc")]
    [DataMember(110)]
    public IMaterialTransparencyFeature Transparency { get; set; }
    Property Value
    Type Description
    IMaterialTransparencyFeature

    The transparency.

    | 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