Class MaterialDiffuseHairModelFeature
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
DebugRenderPasses
Enables/disables color coding of each render pass.
[DataMember(5)]
[Display("Debug render passes", null)]
public bool DebugRenderPasses { get; set; }
Property Value
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
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
Methods
Equals(IMaterialShadingModelFeature)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IMaterialShadingModelFeature other)
Parameters
other
IMaterialShadingModelFeatureAn object to compare with this object.
Returns
Equals(MaterialDiffuseHairModelFeature)
protected bool Equals(MaterialDiffuseHairModelFeature other)
Parameters
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.