Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialHairShadowingFunctionScattering Class

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

    Trades traditional shadow mapping for thickness attenuated shadowing to fake scattering.

    System.Object → MaterialHairShadowingFunctionScattering
    Derived from MaterialHairShadowingFunctionScattering:

    [DataContract("MaterialHairShadowingFunctionScattering")]
    [Display("Scattering", null)]
    public class MaterialHairShadowingFunctionScattering : IMaterialHairShadowingFunction
    Name Description
    Properties
    ExtinctionStrength

    Controls how strong the scattering falloff is.

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

    Properties


    ExtinctionStrength

    Controls how strong the scattering falloff is.

    [DataMember(200)]
    [DataMemberRange(0.01, 1000, 1, 2, 2)]
    [Display("Extinction strength", null)]
    public float ExtinctionStrength { get; set; }
    Property Value
    Type Description
    System.Single
    | 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