Table of Contents

Class MaterialHairShadowingFunctionScattering

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

Trades traditional shadow mapping for thickness attenuated shadowing to fake scattering.

[DataContract("MaterialHairShadowingFunctionScattering")]
[Display("Scattering", null)]
public class MaterialHairShadowingFunctionScattering : IMaterialHairShadowingFunction
Inheritance
MaterialHairShadowingFunctionScattering
Implements

Properties

ExtinctionStrength

Controls how strong the scattering falloff is.

[DataMember(200)]
[DataMemberRange(0.01, 1000, 1, 2, 2)]
[Display("Extinction strength", null)]
public float ExtinctionStrength { get; set; }

Property Value

float

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(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.