Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialSpecularHairModelFeature Class

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

    The microfacet specular shading model.

    System.Object → MaterialFeature → MaterialSpecularHairModelFeature
    Derived from MaterialSpecularHairModelFeature:

    [DataContract("MaterialSpecularHairModelFeature")]
    [Display("Hair", null)]
    public class MaterialSpecularHairModelFeature : MaterialFeature, IMaterialSpecularModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IEquatable<MaterialSpecularHairModelFeature>
    Name Description
    Properties
    AlphaThreshold

    Defines the value used in the alpha test.

    DebugRenderPasses

    Enables/disables color coding of each render pass.

    Environment
    GlintsNoiseStrength
    HairDirectionFunction

    Defines whether the tangent or bitangent vectors represent the hair strands direction.

    HairSecondarySpecularGlintsNoise

    The texure that is multiplied with the secondary specular reflections to give them a sparkling look.

    HairShadowingFunction

    Defines whether to use traditional shadow mapping or subsurface scattering for shadowing the hair.

    HairSpecularHighlightsShiftNoise

    This texture is used to shift the two specular highlights to break the uniform look of the hair.

    IsLightDependent
    LightAttenuationFunction

    Additional light attenuation.

    ScalesAngle

    Controls the shift of the primary and secondary specular reflections.

    ShadingModel

    The shading model to use for the hair shading.

    ShiftNoiseScale

    Scale that gets multiplied with the noise value produced by HairSpecularHighlightsShiftNoise.

    SpecularColor1

    Color of the primary specular reflecton.

    SpecularColor2

    Color of the secondary specular reflecton.

    SpecularExponent1

    Exponent of the primary specular highlight.

    SpecularExponent2

    Exponent of the secondary specular highlight.

    SpecularScale1

    Strength of the primary specular reflection.

    SpecularScale2

    Strength of the secondary specular reflection.

    SpecularShiftRatio
    Methods
    Equals(IMaterialShadingModelFeature)
    Equals(MaterialSpecularHairModelFeature)
    Equals(Object)
    GenerateShader(MaterialGeneratorContext)
    GetHashCode()
    MultipassGeneration(MaterialGeneratorContext)
    | Improve this Doc View Source

    Properties


    AlphaThreshold

    Defines the value used in the alpha test.

    [DataMember(135)]
    [DataMemberRange(0, 1, 1, 2, 2)]
    [Display("Alpha threshold", null)]
    public float AlphaThreshold { get; set; }
    Property Value
    Type Description
    System.Single

    DebugRenderPasses

    Enables/disables color coding of each render pass.

    [DataMember(30)]
    [Display("Debug render passes", null)]
    public bool DebugRenderPasses { get; set; }
    Property Value
    Type Description
    System.Boolean

    Environment

    [DataMember(220)]
    [Display("Environment (DFG)", null)]
    public IMaterialSpecularMicrofacetEnvironmentFunction Environment { get; set; }
    Property Value
    Type Description
    IMaterialSpecularMicrofacetEnvironmentFunction

    GlintsNoiseStrength

    [DataMember(132)]
    [DataMemberRange(0, 1, 1, 2, 2)]
    [Display("Glints noise strength", null)]
    public float GlintsNoiseStrength { get; set; }
    Property Value
    Type Description
    System.Single

    HairDirectionFunction

    Defines whether the tangent or bitangent vectors represent the hair strands direction.

    [DataMember(180)]
    [Display("Hair direction", null)]
    public IMaterialHairDirectionFunction HairDirectionFunction { get; set; }
    Property Value
    Type Description
    IMaterialHairDirectionFunction

    HairSecondarySpecularGlintsNoise

    The texure that is multiplied with the secondary specular reflections to give them a sparkling look.

    [DataMember(150)]
    [Display("Secondary specular noise", null)]
    public IComputeScalar HairSecondarySpecularGlintsNoise { get; set; }
    Property Value
    Type Description
    IComputeScalar

    HairShadowingFunction

    Defines whether to use traditional shadow mapping or subsurface scattering for shadowing the hair.

    [DataMember(181)]
    [Display("Shadowing type", null)]
    public IMaterialHairShadowingFunction HairShadowingFunction { get; set; }
    Property Value
    Type Description
    IMaterialHairShadowingFunction

    HairSpecularHighlightsShiftNoise

    This texture is used to shift the two specular highlights to break the uniform look of the hair.

    [DataMember(140)]
    [Display("Specular shift texture", null)]
    public IComputeScalar HairSpecularHighlightsShiftNoise { get; set; }
    Property Value
    Type Description
    IComputeScalar

    IsLightDependent

    public bool IsLightDependent { get; }
    Property Value
    Type Description
    System.Boolean

    LightAttenuationFunction

    Additional light attenuation.

    [DataMember(210)]
    [Display("Light attenuation", null)]
    public IMaterialHairLightAttenuationFunction LightAttenuationFunction { get; set; }
    Property Value
    Type Description
    IMaterialHairLightAttenuationFunction

    ScalesAngle

    Controls the shift of the primary and secondary specular reflections.

    [DataMember(127)]
    [Display("Hair scales angle", null)]
    [DataMemberRange(0, 25, 1, 2, 2)]
    public float ScalesAngle { get; set; }
    Property Value
    Type Description
    System.Single

    ShadingModel

    The shading model to use for the hair shading.

    [DataMember(40)]
    [Display("Shading model", null)]
    public HairShared.HairShadingModel ShadingModel { get; set; }
    Property Value
    Type Description
    HairShared.HairShadingModel

    ShiftNoiseScale

    Scale that gets multiplied with the noise value produced by HairSpecularHighlightsShiftNoise.

    [DataMember(131)]
    [DataMemberRange(0, 10, 1, 2, 2)]
    [Display("Shift noise strength", null)]
    public float ShiftNoiseScale { get; set; }
    Property Value
    Type Description
    System.Single

    SpecularColor1

    Color of the primary specular reflecton.

    [DataMember(80)]
    [Display("Primary specular reflection color", null)]
    public Color3 SpecularColor1 { get; set; }
    Property Value
    Type Description
    Color3

    SpecularColor2

    Color of the secondary specular reflecton.

    [DataMember(110)]
    [Display("Secondary specular reflection color", null)]
    public Color3 SpecularColor2 { get; set; }
    Property Value
    Type Description
    Color3

    SpecularExponent1

    Exponent of the primary specular highlight.

    [DataMember(70)]
    [DataMemberRange(1, 1000, 1, 2, 2)]
    [Display("Primary specular reflection exponent", null)]
    public float SpecularExponent1 { get; set; }
    Property Value
    Type Description
    System.Single

    SpecularExponent2

    Exponent of the secondary specular highlight.

    [DataMember(100)]
    [DataMemberRange(1, 1000, 1, 2, 2)]
    [Display("Secondary specular reflection exponent", null)]
    public float SpecularExponent2 { get; set; }
    Property Value
    Type Description
    System.Single

    SpecularScale1

    Strength of the primary specular reflection.

    [DataMember(90)]
    [DataMemberRange(0, 1, 1, 2, 3)]
    [Display("Primary specular reflection strength", null)]
    public float SpecularScale1 { get; set; }
    Property Value
    Type Description
    System.Single

    SpecularScale2

    Strength of the secondary specular reflection.

    [DataMember(120)]
    [DataMemberRange(0, 1, 1, 2, 3)]
    [Display("Secondary specular reflection strength", null)]
    public float SpecularScale2 { get; set; }
    Property Value
    Type Description
    System.Single

    SpecularShiftRatio

    [DataMember(125)]
    [DataMemberRange(0, 3, 1, 2, 2)]
    [Display("Secondary reflection shift ratio", null)]
    public float SpecularShiftRatio { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Methods


    Equals(IMaterialShadingModelFeature)

    public bool Equals(IMaterialShadingModelFeature other)
    Parameters
    Type Name Description
    IMaterialShadingModelFeature other
    Returns
    Type Description
    System.Boolean

    Equals(MaterialSpecularHairModelFeature)

    public bool Equals(MaterialSpecularHairModelFeature other)
    Parameters
    Type Name Description
    MaterialSpecularHairModelFeature other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    GenerateShader(MaterialGeneratorContext)

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

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    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

    Back to top

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