Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SubsurfaceScatteringKernelGenerator Class

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

    This class generates transmittance profiles and screen space scattering kernels for Separable Subsurface Scattering.

    System.Object → SubsurfaceScatteringKernelGenerator
    Derived from SubsurfaceScatteringKernelGenerator:

    public class SubsurfaceScatteringKernelGenerator
    Name Description
    Methods
    CalculateScatteringKernel(Int32, Color3, Color3)
    CalculateTransmittanceProfile(Vector3)
    | Improve this Doc View Source

    Methods


    CalculateScatteringKernel(Int32, Color3, Color3)

    public static Vector4[] CalculateScatteringKernel(int sampleCount, Color3 strength, Color3 falloff)
    Parameters
    Type Name Description
    System.Int32 sampleCount
    Color3 strength
    Color3 falloff
    Returns
    Type Description
    Vector4[]

    CalculateTransmittanceProfile(Vector3)

    public static Vector4[] CalculateTransmittanceProfile(Vector3 falloff)
    Parameters
    Type Name Description
    Vector3 falloff
    Returns
    Type Description
    Vector4[]

    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