Table of Contents

Class MaterialSubsurfaceScatteringFeature

Namespace
Stride.Rendering.Materials
Assembly
Stride.Rendering.dll
[DataContract("MaterialSubsurfaceScatteringFeature")]
[Display("Subsurface Scattering", null)]
public class MaterialSubsurfaceScatteringFeature : MaterialFeature, IMaterialSubsurfaceScatteringFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IMaterialStreamProvider
Inheritance
MaterialSubsurfaceScatteringFeature
Implements
Inherited Members

Properties

IsLightDependent

Gets the services.

public bool IsLightDependent { get; }

Property Value

bool

The services.

KernelFunction

Generates the scattering kernel.

[DataMember(30)]
[Display("Scattering kernel", null)]
public IMaterialSubsurfaceScatteringScatteringKernel KernelFunction { get; set; }

Property Value

IMaterialSubsurfaceScatteringScatteringKernel

ProfileFunction

The profile mixin to use for the scattering calculations.

[DataMember(25)]
[Display("Scattering profile", null)]
public IMaterialSubsurfaceScatteringScatteringProfile ProfileFunction { get; set; }

Property Value

IMaterialSubsurfaceScatteringScatteringProfile

ScatteringWidth

Width of the scattering kernel in world space.

[DataMember(5)]
[Display("Scattering width", null)]
[DataMemberRange(0.001, 0.5, 0.001, 0.01, 4)]
public float ScatteringWidth { get; set; }

Property Value

float

Translucency

Translucency of the material.

[DataMember(10)]
[Display("Translucency", null)]
[DataMemberRange(0, 1, 0.001, 0.01, 3)]
public float Translucency { get; set; }

Property Value

float

TranslucencyMap

Controls the thickness of the object. This value gets multiplied with the "Translucency" parameter.

[DataMember(20)]
[Display("Translucency map", null)]
public IComputeScalar TranslucencyMap { get; set; }

Property Value

IComputeScalar

Methods

Equals(IMaterialShadingModelFeature)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IMaterialShadingModelFeature other)

Parameters

other IMaterialShadingModelFeature

An object to compare with this object.

Returns

bool

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

Equals(MaterialSubsurfaceScatteringFeature)

protected bool Equals(MaterialSubsurfaceScatteringFeature other)

Parameters

other MaterialSubsurfaceScatteringFeature

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.

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetStreams()

Gets the streams used by a material

public IEnumerable<MaterialStreamDescriptor> GetStreams()

Returns

IEnumerable<MaterialStreamDescriptor>

IEnumerable<MaterialStream>.