Class MaterialSpecularMicrofacetModelFeature
The microfacet specular shading model.
[DataContract("MaterialSpecularMicrofacetModelFeature")]
[Display("Microfacet", null)]
public class MaterialSpecularMicrofacetModelFeature : MaterialFeature, IMaterialSpecularModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IEquatable<MaterialSpecularMicrofacetModelFeature>
- Inheritance
-
MaterialSpecularMicrofacetModelFeature
- Implements
- Derived
- Inherited Members
Properties
Environment
[DataMember(40)]
[Display("Environment (DFG)", null)]
public IMaterialSpecularMicrofacetEnvironmentFunction Environment { get; set; }
Property Value
Fresnel
[DataMember(10)]
[Display("Fresnel", null)]
public IMaterialSpecularMicrofacetFresnelFunction Fresnel { get; set; }
Property Value
NormalDistribution
[DataMember(30)]
[Display("Normal Distribution", null)]
public IMaterialSpecularMicrofacetNormalDistributionFunction NormalDistribution { get; set; }
Property Value
Visibility
[DataMember(20)]
[Display("Visibility", null)]
public IMaterialSpecularMicrofacetVisibilityFunction Visibility { 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(MaterialSpecularMicrofacetModelFeature)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MaterialSpecularMicrofacetModelFeature other)
Parameters
other
MaterialSpecularMicrofacetModelFeatureAn object to compare with this object.
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.
GenerateShaderCompositions(MaterialGeneratorContext, ShaderMixinSource)
protected virtual void GenerateShaderCompositions(MaterialGeneratorContext context, ShaderMixinSource shaderSource)
Parameters
context
MaterialGeneratorContextshaderSource
ShaderMixinSource
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.