Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialTransparencyAdditiveFeature Class

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

    A transparent additive material.

    System.Object → MaterialFeature → MaterialTransparencyAdditiveFeature
    Derived from MaterialTransparencyAdditiveFeature:

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

    Initializes a new instance of the MaterialTransparencyAdditiveFeature class.

    Properties
    Alpha

    Gets or sets the alpha.

    Tint

    Gets or sets the tint color.

    Methods
    GenerateShader(MaterialGeneratorContext)
    | Improve this Doc View Source

    Constructors


    MaterialTransparencyAdditiveFeature()

    Initializes a new instance of the MaterialTransparencyAdditiveFeature class.

    public MaterialTransparencyAdditiveFeature()
    | 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.


    Tint

    Gets or sets the tint color.

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

    The tint.

    | 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