Table of Contents

Class SubsurfaceScatteringKernelGenerator

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

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

public class SubsurfaceScatteringKernelGenerator
Inheritance
SubsurfaceScatteringKernelGenerator

Methods

CalculateScatteringKernel(int, Color3, Color3)

public static Vector4[] CalculateScatteringKernel(int sampleCount, Color3 strength, Color3 falloff)

Parameters

sampleCount int
strength Color3
falloff Color3

Returns

Vector4[]

CalculateTransmittanceProfile(Vector3)

public static Vector4[] CalculateTransmittanceProfile(Vector3 falloff)

Parameters

falloff Vector3

Returns

Vector4[]