SubsurfaceScatteringKernelGenerator Class
Namespace: Stride.Rendering.MaterialsAssembly: 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) |
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[] |