Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialSubsurfaceScatteringScatteringKernelSkin Class

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

    Calculates the scattering profile for skin, which is applied during the forward pass using the subsurface scattering shading model. It also calculates a scattering kernel based on the "Falloff" and "Strength" parameters.

    System.Object → MaterialSubsurfaceScatteringScatteringKernelSkin
    Derived from MaterialSubsurfaceScatteringScatteringKernelSkin:

    [Display("Skin", null)]
    [DataContract("MaterialSubsurfaceScatteringScatteringKernelSkin")]
    public class MaterialSubsurfaceScatteringScatteringKernelSkin : IMaterialSubsurfaceScatteringScatteringKernel
    Name Description
    Properties
    Falloff

    This parameter defines the per-channel falloff of the gradients produced by the subsurface scattering events. It can be used to fine tune the color of the gradients.

    Strength

    This parameter specifies the how much of the diffuse light gets into the material, and thus gets modified by the SSS mechanism. It can be seen as a per-channel mix factor between the original image, and the SSS-filtered image.

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

    Properties


    Falloff

    This parameter defines the per-channel falloff of the gradients produced by the subsurface scattering events. It can be used to fine tune the color of the gradients.

    [DataMember(10)]
    [Display("Falloff", null)]
    public Color3 Falloff { get; set; }
    Property Value
    Type Description
    Color3

    Strength

    This parameter specifies the how much of the diffuse light gets into the material, and thus gets modified by the SSS mechanism. It can be seen as a per-channel mix factor between the original image, and the SSS-filtered image.

    [DataMember(20)]
    [Display("Strength", null)]
    public Color3 Strength { get; set; }
    Property Value
    Type Description
    Color3
    | 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()

    public Vector4[] Generate()
    Returns
    Type Description
    Vector4[]

    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