Table of Contents

Class MaterialHairLightAttenuationFunctionDirectional

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

Applies light attenuation with configurable hardness.

[DataContract("MaterialHairLightAttenuationFunctionDirectional")]
[Display("Directional", null)]
public class MaterialHairLightAttenuationFunctionDirectional : IMaterialHairLightAttenuationFunction
Inheritance
MaterialHairLightAttenuationFunctionDirectional
Implements

Properties

BoundaryShift

The interpolation factor used for shifting the boundary between lit and unlit areas.

[DataMember(20)]
[DataMemberRange(0, 0.5, 0.01, 0.1, 2)]
[Display("Shadow boundary shift", null)]
public float BoundaryShift { get; set; }

Property Value

float

Hardness

Defines the exponent used in the shader.

[DataMember(10)]
[DataMemberRange(0.01, 64, 0.01, 1, 2)]
[Display("Hardness", null)]
public float Hardness { get; set; }

Property Value

float

SelectedNormalMode

The normals to use for the light attenuation computation.

[DataMember(20)]
[Display("Normals to use", null)]
public MaterialHairLightAttenuationFunctionDirectional.NormalMode SelectedNormalMode { get; set; }

Property Value

MaterialHairLightAttenuationFunctionDirectional.NormalMode

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.