Table of Contents

Class MaterialSubsurfaceScatteringScatteringKernelSkin

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.

[Display("Skin", null)]
[DataContract("MaterialSubsurfaceScatteringScatteringKernelSkin")]
public class MaterialSubsurfaceScatteringScatteringKernelSkin : IMaterialSubsurfaceScatteringScatteringKernel
Inheritance
MaterialSubsurfaceScatteringScatteringKernelSkin
Implements

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

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

Color3

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Generate()

Generates the scattering kernel that is fed into the SSS post-process.

public Vector4[] Generate()

Returns

Vector4[]

ShaderSource.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.