Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialClearCoatFeature Class

    Namespace: Stride.Rendering.Materials
    Assembly: Stride.Rendering.dll
    System.Object → MaterialFeature → MaterialClearCoatFeature
    Derived from MaterialClearCoatFeature:

    [DataContract("MaterialClearCoatFeature")]
    [Display("Clear coat", null)]
    [CategoryOrder(5, "Base paint")]
    [CategoryOrder(10, "Metal flakes")]
    [CategoryOrder(15, "Clear coat")]
    public class MaterialClearCoatFeature : MaterialFeature, IMaterialClearCoatFeature, IMaterialFeature, IMaterialShaderGenerator
    Name Description
    Constructors
    MaterialClearCoatFeature()
    Properties
    BasePaintDiffuseMap

    Gets or sets the base paint layer diffuse map.

    BasePaintGlossinessInvert

    Gets or sets a value indicating whether the BasePaintGlossinessMap is invert.

    BasePaintGlossinessMap

    Gets or sets the base paint smoothness map.

    ClearCoatGlossinessInvert

    Gets or sets a value indicating whether the ClearCoatGlossinessMap is invert.

    ClearCoatGlossinessMap

    Gets or sets the clear coat smoothness map.

    ClearCoatMetalnessMap

    Gets or sets the clear coat metalness map.

    LODDistance

    Gets or sets the distance at which the base paint layer should transition to the metal flakes layer.

    MetalFlakesDiffuseMap

    Gets or sets the metal flakes diffuse map.

    MetalFlakesGlossinessInvert

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

    MetalFlakesGlossinessMap

    Gets or sets the metal flakes smoothness map.

    MetalFlakeslIsXYNormal

    Gets or sets a value indicating whether the normal is only stored in XY components and Z is assumed to be sqrt(1 - xx - yy).

    MetalFlakesMetalnessMap

    Gets or sets the metal flakes metalness map.

    MetalFlakesNormalMap

    Gets or sets the normal map used for the metal flakes layer.

    MetalFlakesScaleAndBias

    Gets or sets a value indicating whether to scale by (2,2) and offset by (-1,-1) the normal map.

    OrangePeelIsXYNormal

    Gets or sets a value indicating whether the normal is only stored in XY components and Z is assumed to be sqrt(1 - xx - yy).

    OrangePeelNormalMap

    Gets or sets the normal map used for the clear coat layer.

    OrangePeelScaleAndBias

    Gets or sets a value indicating whether to scale by (2,2) and offset by (-1,-1) the normal map.

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

    Constructors


    MaterialClearCoatFeature()

    public MaterialClearCoatFeature()
    | Improve this Doc View Source

    Properties


    BasePaintDiffuseMap

    Gets or sets the base paint layer diffuse map.

    [DataMember(110)]
    [Display("Base paint diffuse map", "Base paint")]
    public IComputeColor BasePaintDiffuseMap { get; set; }
    Property Value
    Type Description
    IComputeColor

    The diffuse map.


    BasePaintGlossinessInvert

    Gets or sets a value indicating whether the BasePaintGlossinessMap is invert.

    [DataMember(130)]
    [Display("Invert gloss", "Base paint")]
    public bool BasePaintGlossinessInvert { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if invert; otherwise, false.


    BasePaintGlossinessMap

    Gets or sets the base paint smoothness map.

    [DataMember(120)]
    [Display("Base paint gloss map", "Base paint")]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    public IComputeScalar BasePaintGlossinessMap { get; set; }
    Property Value
    Type Description
    IComputeScalar

    The smoothness map.


    ClearCoatGlossinessInvert

    Gets or sets a value indicating whether the ClearCoatGlossinessMap is invert.

    [DataMember(220)]
    [Display("Invert gloss", "Clear coat")]
    public bool ClearCoatGlossinessInvert { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if invert; otherwise, false.


    ClearCoatGlossinessMap

    Gets or sets the clear coat smoothness map.

    [DataMember(210)]
    [Display("Clear coat gloss map", "Clear coat")]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    public IComputeScalar ClearCoatGlossinessMap { get; set; }
    Property Value
    Type Description
    IComputeScalar

    The smoothness map.


    ClearCoatMetalnessMap

    Gets or sets the clear coat metalness map.

    [DataMember(230)]
    [Display("Clear coat metalness map", "Clear coat")]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    public IComputeScalar ClearCoatMetalnessMap { get; set; }
    Property Value
    Type Description
    IComputeScalar

    LODDistance

    Gets or sets the distance at which the base paint layer should transition to the metal flakes layer.

    [DataMember(100)]
    [Display("Layer transition distance", null)]
    [DataMemberRange(0.001, 2, 0.01, 0.1, 3)]
    public IComputeScalar LODDistance { get; set; }
    Property Value
    Type Description
    IComputeScalar

    The transition distance.


    MetalFlakesDiffuseMap

    Gets or sets the metal flakes diffuse map.

    [DataMember(140)]
    [Display("Metal flake diffuse map", "Metal flakes")]
    public IComputeColor MetalFlakesDiffuseMap { get; set; }
    Property Value
    Type Description
    IComputeColor

    The diffuse map.


    MetalFlakesGlossinessInvert

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

    [DataMember(160)]
    [Display("Invert gloss", "Metal flakes")]
    public bool MetalFlakesGlossinessInvert { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if invert; otherwise, false.


    MetalFlakesGlossinessMap

    Gets or sets the metal flakes smoothness map.

    [DataMember(150)]
    [Display("Metal flake gloss map", "Metal flakes")]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    public IComputeScalar MetalFlakesGlossinessMap { get; set; }
    Property Value
    Type Description
    IComputeScalar

    The smoothness map.


    MetalFlakeslIsXYNormal

    Gets or sets a value indicating whether the normal is only stored in XY components and Z is assumed to be sqrt(1 - xx - yy).

    [DataMember(200)]
    [Display("Reconstruct Z", "Metal flakes")]
    public bool MetalFlakeslIsXYNormal { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is xy normal; otherwise, false.


    MetalFlakesMetalnessMap

    Gets or sets the metal flakes metalness map.

    [DataMember(170)]
    [Display("Metal flake metalness map", "Metal flakes")]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    public IComputeScalar MetalFlakesMetalnessMap { get; set; }
    Property Value
    Type Description
    IComputeScalar

    MetalFlakesNormalMap

    Gets or sets the normal map used for the metal flakes layer.

    [DataMember(180)]
    [Display("Metal flake normal map", "Metal flakes")]
    public IComputeColor MetalFlakesNormalMap { get; set; }
    Property Value
    Type Description
    IComputeColor

    The normal map.


    MetalFlakesScaleAndBias

    Gets or sets a value indicating whether to scale by (2,2) and offset by (-1,-1) the normal map.

    [DataMember(190)]
    [Display("Scale and offset", "Metal flakes")]
    public bool MetalFlakesScaleAndBias { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if scale and offset this normal map; otherwise, false.


    OrangePeelIsXYNormal

    Gets or sets a value indicating whether the normal is only stored in XY components and Z is assumed to be sqrt(1 - xx - yy).

    [DataMember(260)]
    [Display("Reconstruct Z", "Clear coat")]
    public bool OrangePeelIsXYNormal { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is xy normal; otherwise, false.


    OrangePeelNormalMap

    Gets or sets the normal map used for the clear coat layer.

    [DataMember(240)]
    [Display("Orange peel normal map", "Clear coat")]
    public IComputeColor OrangePeelNormalMap { get; set; }
    Property Value
    Type Description
    IComputeColor

    The normal map.


    OrangePeelScaleAndBias

    Gets or sets a value indicating whether to scale by (2,2) and offset by (-1,-1) the normal map.

    [DataMember(250)]
    [Display("Scale and offset", "Clear coat")]
    public bool OrangePeelScaleAndBias { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if scale and offset this normal map; 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)

    MultipassGeneration(MaterialGeneratorContext)

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

    Inherited Members

    MaterialFeature.Enabled
    MaterialFeature.Visit(MaterialGeneratorContext)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article
    In This Article
    • Constructors
      • MaterialClearCoatFeature()
    • Properties
      • BasePaintDiffuseMap
      • BasePaintGlossinessInvert
      • BasePaintGlossinessMap
      • ClearCoatGlossinessInvert
      • ClearCoatGlossinessMap
      • ClearCoatMetalnessMap
      • LODDistance
      • MetalFlakesDiffuseMap
      • MetalFlakesGlossinessInvert
      • MetalFlakesGlossinessMap
      • MetalFlakeslIsXYNormal
      • MetalFlakesMetalnessMap
      • MetalFlakesNormalMap
      • MetalFlakesScaleAndBias
      • OrangePeelIsXYNormal
      • OrangePeelNormalMap
      • OrangePeelScaleAndBias
    • Methods
      • GenerateShader(MaterialGeneratorContext)
      • MultipassGeneration(MaterialGeneratorContext)
    • Inherited Members
    • Extension Methods

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation