MaterialHairLightAttenuationFunctionDirectional Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
Applies light attenuation with configurable hardness.
System.Object →
MaterialHairLightAttenuationFunctionDirectional
Derived from MaterialHairLightAttenuationFunctionDirectional:
[DataContract("MaterialHairLightAttenuationFunctionDirectional")]
[Display("Directional", null)]
public class MaterialHairLightAttenuationFunctionDirectional : IMaterialHairLightAttenuationFunction
Name | Description | |
---|---|---|
Properties | ||
BoundaryShift | The interpolation factor used for shifting the boundary between lit and unlit areas. |
|
Hardness | Defines the exponent used in the shader. |
|
SelectedNormalMode | ||
Methods | ||
Equals(Object) | ||
Generate(MaterialGeneratorContext) | ||
GetHashCode() |
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
Type | Description |
---|---|
System.Single |
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
Type | Description |
---|---|
System.Single |
SelectedNormalMode
[DataMember(20)]
[Display("Normals to use", null)]
public MaterialHairLightAttenuationFunctionDirectional.NormalMode SelectedNormalMode { get; set; }
Property Value
Type | Description |
---|---|
MaterialHairLightAttenuationFunctionDirectional.NormalMode |
Methods
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
Generate(MaterialGeneratorContext)
public ShaderSource Generate(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |
Returns
Type | Description |
---|---|
ShaderSource |
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()