Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialPass Class

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

    Describes a single rendering pass of a Material.

    System.Object → MaterialPass
    Derived from MaterialPass:

    [DataContract]
    public class MaterialPass
    Name Description
    Constructors
    MaterialPass()

    Initializes a new instance of the MaterialPass class.

    MaterialPass(ParameterCollection)

    Initializes a new instance of the MaterialPass class.

    Fields
    BlendState

    Overrides the blend state for this material.

    CullMode

    Overrides the cullmode for this material.

    TessellationMethod

    The tessellation method used by the material.

    Properties
    AlphaToCoverage

    Whether or not to use the alpha-to-coverage multisampling technique.

    HasTransparency

    Gets or sets a value indicating whether this instance has transparent.

    IsLightDependent

    Determines if this material is affected by lighting.

    Material

    The material that contains this pass.

    Parameters

    Gets or sets the parameters.

    PassIndex

    The index of this pass as part of its containing Material.

    | Improve this Doc View Source

    Constructors


    MaterialPass()

    Initializes a new instance of the MaterialPass class.

    public MaterialPass()

    MaterialPass(ParameterCollection)

    Initializes a new instance of the MaterialPass class.

    public MaterialPass(ParameterCollection parameters)
    Parameters
    Type Name Description
    ParameterCollection parameters

    The parameters.

    | Improve this Doc View Source

    Fields


    BlendState

    Overrides the blend state for this material.

    public BlendStateDescription? BlendState
    Field Value
    Type Description
    System.Nullable<BlendStateDescription>

    CullMode

    Overrides the cullmode for this material.

    public CullMode? CullMode
    Field Value
    Type Description
    System.Nullable<CullMode>

    TessellationMethod

    The tessellation method used by the material.

    public StrideTessellationMethod TessellationMethod
    Field Value
    Type Description
    StrideTessellationMethod
    | Improve this Doc View Source

    Properties


    AlphaToCoverage

    Whether or not to use the alpha-to-coverage multisampling technique.

    public bool? AlphaToCoverage { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    HasTransparency

    Gets or sets a value indicating whether this instance has transparent.

    public bool HasTransparency { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance has transparent; otherwise, false.


    IsLightDependent

    Determines if this material is affected by lighting.

    public bool IsLightDependent { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance affects lighting; otherwise, false.


    Material

    The material that contains this pass.

    public Material Material { get; }
    Property Value
    Type Description
    Material

    Parameters

    Gets or sets the parameters.

    public ParameterCollection Parameters { get; set; }
    Property Value
    Type Description
    ParameterCollection

    The parameters.


    PassIndex

    The index of this pass as part of its containing Material.

    public int PassIndex { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    Used for state sorting.


    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