Table of Contents

Class MaterialSubsurfaceScatteringScatteringProfileCustom

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

Calculates a custom scattering profile, which is applied during the forward pass using the subsurface scattering shading model.

ATTENTION: This class is subject to change because it does not yet give you full control over generating scattering kernels and profiles.

[Display("Custom (Skin based)", null)]
[DataContract("MaterialSubsurfaceScatteringScatteringProfileCustom")]
public class MaterialSubsurfaceScatteringScatteringProfileCustom : IMaterialSubsurfaceScatteringScatteringProfile
Inheritance
MaterialSubsurfaceScatteringScatteringProfileCustom
Implements

Constructors

MaterialSubsurfaceScatteringScatteringProfileCustom()

public MaterialSubsurfaceScatteringScatteringProfileCustom()

Properties

FalloffMap

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 map", null)]
public IComputeColor FalloffMap { get; set; }

Property Value

IComputeColor

Methods

Equals(MaterialSubsurfaceScatteringScatteringProfileCustom)

protected bool Equals(MaterialSubsurfaceScatteringScatteringProfileCustom other)

Parameters

other MaterialSubsurfaceScatteringScatteringProfileCustom

Returns

bool

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(MaterialGeneratorContext)

Generates the shader class source used for the shader composition.

public ShaderSource Generate(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

Returns

ShaderSource

ShaderSource.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.