Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialTransparencyCutoffFeature Class

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

    A transparent cutoff material.

    System.Object → MaterialFeature → MaterialTransparencyCutoffFeature
    Derived from MaterialTransparencyCutoffFeature:

    [DataContract("MaterialTransparencyCutoffFeature")]
    [Display("Cutoff", null)]
    public class MaterialTransparencyCutoffFeature : MaterialFeature, IMaterialTransparencyFeature, IMaterialFeature, IMaterialShaderGenerator
    Name Description
    Constructors
    MaterialTransparencyCutoffFeature()

    Initializes a new instance of the MaterialTransparencyCutoffFeature class.

    Properties
    Alpha

    Gets or sets the alpha.

    Methods
    GenerateShader(MaterialGeneratorContext)
    | Improve this Doc View Source

    Constructors


    MaterialTransparencyCutoffFeature()

    Initializes a new instance of the MaterialTransparencyCutoffFeature class.

    public MaterialTransparencyCutoffFeature()
    | Improve this Doc View Source

    Properties


    Alpha

    Gets or sets the alpha.

    [DataMember(10)]
    [DataMemberRange(0, 1, 0.01, 0.1, 2)]
    public IComputeScalar Alpha { get; set; }
    Property Value
    Type Description
    IComputeScalar

    The alpha.

    | Improve this Doc View Source

    Methods


    GenerateShader(MaterialGeneratorContext)

    public override void GenerateShader(MaterialGeneratorContext context)
    Parameters
    Type Name Description
    MaterialGeneratorContext context
    Overrides
    MaterialFeature.GenerateShader(MaterialGeneratorContext)

    Inherited Members

    MaterialFeature.Enabled
    MaterialFeature.Visit(MaterialGeneratorContext)
    MaterialFeature.MultipassGeneration(MaterialGeneratorContext)

    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