MaterialDiffuseHairModelFeature Class
Namespace: Stride.Rendering.Materials
Assembly: Stride.Rendering.dll
The diffuse subsurface scattering for the diffuse material model attribute.
Derived from MaterialDiffuseHairModelFeature:
[DataContract("MaterialDiffuseHairModelFeature")]
[Display("Hair", null)]
public class MaterialDiffuseHairModelFeature : MaterialFeature, IMaterialDiffuseModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>
|
Improve this Doc
View Source
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
Type |
Description |
System.Single |
|
DebugRenderPasses
Enables/disables color coding of each render pass.
[DataMember(5)]
[Display("Debug render passes", null)]
public bool DebugRenderPasses { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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
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
IsLightDependent
public bool IsLightDependent { get; }
Property Value
Type |
Description |
System.Boolean |
|
LightAttenuationFunction
Additional light attenuation.
[DataMember(70)]
[Display("Light attenuation", null)]
public IMaterialHairLightAttenuationFunction LightAttenuationFunction { get; set; }
Property Value
ShadingModel
The shading model to use for the hair shading.
[DataMember(10)]
[Display("Shading model", null)]
public HairShared.HairShadingModel ShadingModel { get; set; }
Property Value
|
Improve this Doc
View Source
Methods
Equals(IMaterialShadingModelFeature)
public bool Equals(IMaterialShadingModelFeature other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(MaterialDiffuseHairModelFeature)
protected bool Equals(MaterialDiffuseHairModelFeature other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
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)
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Extension Methods