Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialGlossinessMapFeature Class

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

    A smoothness map for the micro-surface material feature.

    System.Object → MaterialFeature → MaterialGlossinessMapFeature
    Derived from MaterialGlossinessMapFeature:

    [DataContract("MaterialGlossinessMapFeature")]
    [Display("Gloss map", null)]
    public class MaterialGlossinessMapFeature : MaterialFeature, IMaterialMicroSurfaceFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
    Name Description
    Constructors
    MaterialGlossinessMapFeature()

    Initializes a new instance of the MaterialGlossinessMapFeature class.

    MaterialGlossinessMapFeature(IComputeScalar)

    Initializes a new instance of the MaterialGlossinessMapFeature class.

    Properties
    GlossinessMap

    Gets or sets the smoothness map.

    Invert

    Gets or sets a value indicating whether this MaterialGlossinessMapFeature is invert.

    Methods
    GenerateShader(MaterialGeneratorContext)
    GetStreams()
    | Improve this Doc View Source

    Constructors


    MaterialGlossinessMapFeature()

    Initializes a new instance of the MaterialGlossinessMapFeature class.

    public MaterialGlossinessMapFeature()

    MaterialGlossinessMapFeature(IComputeScalar)

    Initializes a new instance of the MaterialGlossinessMapFeature class.

    public MaterialGlossinessMapFeature(IComputeScalar glossinessMap)
    Parameters
    Type Name Description
    IComputeScalar glossinessMap

    The glossiness map.

    | Improve this Doc View Source

    Properties


    GlossinessMap

    Gets or sets the smoothness map.

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

    The smoothness map.


    Invert

    Gets or sets a value indicating whether this MaterialGlossinessMapFeature is invert.

    [Display("Invert", null)]
    public bool Invert { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if invert; otherwise, false.

    | Improve this Doc View Source

    Methods


    GenerateShader(MaterialGeneratorContext)

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

    GetStreams()

    public IEnumerable<MaterialStreamDescriptor> GetStreams()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<MaterialStreamDescriptor>

    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