Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialMetalnessMapFeature Class

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

    A Metalness map for the specular material feature.

    System.Object → MaterialFeature → MaterialMetalnessMapFeature
    Derived from MaterialMetalnessMapFeature:

    [DataContract("MaterialMetalnessMapFeature")]
    [Display("Metalness Map", null)]
    public class MaterialMetalnessMapFeature : MaterialFeature, IMaterialSpecularFeature, IMaterialFeature, IMaterialShaderGenerator
    Name Description
    Constructors
    MaterialMetalnessMapFeature()

    Initializes a new instance of the MaterialMetalnessMapFeature class.

    MaterialMetalnessMapFeature(IComputeScalar)

    Initializes a new instance of the MaterialMetalnessMapFeature class.

    Properties
    MetalnessMap

    Gets or sets the metalness map.

    Methods
    GenerateShader(MaterialGeneratorContext)
    | Improve this Doc View Source

    Constructors


    MaterialMetalnessMapFeature()

    Initializes a new instance of the MaterialMetalnessMapFeature class.

    public MaterialMetalnessMapFeature()

    MaterialMetalnessMapFeature(IComputeScalar)

    Initializes a new instance of the MaterialMetalnessMapFeature class.

    public MaterialMetalnessMapFeature(IComputeScalar metalnessMap)
    Parameters
    Type Name Description
    IComputeScalar metalnessMap

    The metalness map.

    | Improve this Doc View Source

    Properties


    MetalnessMap

    Gets or sets the metalness map.

    [Display("Metalness Map", null)]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    public IComputeScalar MetalnessMap { get; set; }
    Property Value
    Type Description
    IComputeScalar

    The metalness map.

    | 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