MaterialHairShadowingFunctionScattering Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
Trades traditional shadow mapping for thickness attenuated shadowing to fake scattering.
System.Object →
MaterialHairShadowingFunctionScattering
Derived from MaterialHairShadowingFunctionScattering:
[DataContract("MaterialHairShadowingFunctionScattering")]
[Display("Scattering", null)]
public class MaterialHairShadowingFunctionScattering : IMaterialHairShadowingFunction
| Name | Description | |
|---|---|---|
| Properties | ||
| ExtinctionStrength | Controls how strong the scattering falloff is. |
|
| Methods | ||
| Equals(Object) | ||
| Generate(MaterialGeneratorContext) | ||
| GetHashCode() | ||
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
| Type | Description |
|---|---|
| System.Single |
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()