Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialDiffuseHairModelFeature Class

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

    The diffuse subsurface scattering for the diffuse material model attribute.

    System.Object → MaterialFeature → MaterialDiffuseHairModelFeature
    Derived from MaterialDiffuseHairModelFeature:

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

    Defines the value used in the alpha test.

    DebugRenderPasses

    Enables/disables color coding of each render pass.

    HairDirectionFunction

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

    HairShadowingFunction

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

    IsLightDependent
    LightAttenuationFunction

    Additional light attenuation.

    ShadingModel

    The shading model to use for the hair shading.

    Methods
    Equals(IMaterialShadingModelFeature)
    Equals(MaterialDiffuseHairModelFeature)
    Equals(Object)
    GenerateShader(MaterialGeneratorContext)
    GetHashCode()
    | Improve this Doc View Source

    Properties


    AlphaThreshold

    Defines the value used in the alpha test.

    [DataMember(80)]
    [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(5)]
    [Display("Debug render passes", null)]
    public bool DebugRenderPasses { get; set; }
    Property Value
    Type Description
    System.Boolean

    HairDirectionFunction

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

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

    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

    IsLightDependent

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

    LightAttenuationFunction

    Additional light attenuation.

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

    ShadingModel

    The shading model to use for the hair shading.

    [DataMember(10)]
    [Display("Shading model", null)]
    public HairShared.HairShadingModel ShadingModel { get; set; }
    Property Value
    Type Description
    HairShared.HairShadingModel
    | 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(MaterialDiffuseHairModelFeature)

    protected bool Equals(MaterialDiffuseHairModelFeature other)
    Parameters
    Type Name Description
    MaterialDiffuseHairModelFeature 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()

    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