Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialHairLightAttenuationFunctionDirectional Class

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

    Applies light attenuation with configurable hardness.

    System.Object → MaterialHairLightAttenuationFunctionDirectional
    Derived from MaterialHairLightAttenuationFunctionDirectional:

    [DataContract("MaterialHairLightAttenuationFunctionDirectional")]
    [Display("Directional", null)]
    public class MaterialHairLightAttenuationFunctionDirectional : IMaterialHairLightAttenuationFunction
    Name Description
    Properties
    BoundaryShift

    The interpolation factor used for shifting the boundary between lit and unlit areas.

    Hardness

    Defines the exponent used in the shader.

    SelectedNormalMode
    Methods
    Equals(Object)
    Generate(MaterialGeneratorContext)
    GetHashCode()
    | Improve this Doc View Source

    Properties


    BoundaryShift

    The interpolation factor used for shifting the boundary between lit and unlit areas.

    [DataMember(20)]
    [DataMemberRange(0, 0.5, 0.01, 0.1, 2)]
    [Display("Shadow boundary shift", null)]
    public float BoundaryShift { get; set; }
    Property Value
    Type Description
    System.Single

    Hardness

    Defines the exponent used in the shader.

    [DataMember(10)]
    [DataMemberRange(0.01, 64, 0.01, 1, 2)]
    [Display("Hardness", null)]
    public float Hardness { get; set; }
    Property Value
    Type Description
    System.Single

    SelectedNormalMode

    [DataMember(20)]
    [Display("Normals to use", null)]
    public MaterialHairLightAttenuationFunctionDirectional.NormalMode SelectedNormalMode { get; set; }
    Property Value
    Type Description
    MaterialHairLightAttenuationFunctionDirectional.NormalMode
    | Improve this Doc View Source

    Methods


    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)

    Generate(MaterialGeneratorContext)

    public ShaderSource Generate(MaterialGeneratorContext context)
    Parameters
    Type Name Description
    MaterialGeneratorContext context
    Returns
    Type Description
    ShaderSource

    GetHashCode()

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

    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