Table of Contents

Class MaterialDiffuseHairModelFeature

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

The diffuse subsurface scattering for the diffuse material model attribute.

[DataContract("MaterialDiffuseHairModelFeature")]
[Display("Hair", null)]
public class MaterialDiffuseHairModelFeature : MaterialFeature, IMaterialDiffuseModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>
Inheritance
MaterialDiffuseHairModelFeature
Implements
Inherited Members

Properties

AlphaThreshold

Defines the value used in the alpha test.

[DataMember(80)]
[DataMemberRange(0, 1, 1, 2, 2)]
[Display("Alpha threshold", null)]
public float AlphaThreshold { get; set; }

Property Value

float

DebugRenderPasses

Enables/disables color coding of each render pass.

[DataMember(5)]
[Display("Debug render passes", null)]
public bool DebugRenderPasses { get; set; }

Property Value

bool

HairDirectionFunction

Defines whether the tangent or bitangent vectors represent the hair strands direction.

[DataMember(20)]
[Display("Hair direction", null)]
public IMaterialHairDirectionFunction HairDirectionFunction { get; set; }

Property Value

IMaterialHairDirectionFunction

HairShadowingFunction

Defines whether to use traditional shadow mapping or subsurface scattering for shadowing the hair.

[DataMember(181)]
[Display("Shadowing type", null)]
public IMaterialHairShadowingFunction HairShadowingFunction { get; set; }

Property Value

IMaterialHairShadowingFunction

IsLightDependent

public bool IsLightDependent { get; }

Property Value

bool

LightAttenuationFunction

Additional light attenuation.

[DataMember(70)]
[Display("Light attenuation", null)]
public IMaterialHairLightAttenuationFunction LightAttenuationFunction { get; set; }

Property Value

IMaterialHairLightAttenuationFunction

ShadingModel

The shading model to use for the hair shading.

[DataMember(10)]
[Display("Shading model", null)]
public HairShared.HairShadingModel ShadingModel { get; set; }

Property Value

HairShared.HairShadingModel

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

protected bool Equals(MaterialDiffuseHairModelFeature other)

Parameters

other MaterialDiffuseHairModelFeature

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.