Class MaterialSpecularThinGlassModelFeature
[DataContract("MaterialSpecularThinGlassModelFeature")]
[Display("Glass", null)]
public class MaterialSpecularThinGlassModelFeature : MaterialSpecularMicrofacetModelFeature, IMaterialSpecularModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IEquatable<MaterialSpecularMicrofacetModelFeature>, IEquatable<MaterialSpecularThinGlassModelFeature>
- Inheritance
-
MaterialSpecularThinGlassModelFeature
- Implements
- Inherited Members
Constructors
MaterialSpecularThinGlassModelFeature()
Initializes a new instance of the MaterialSpecularThinGlassModelFeature class.
public MaterialSpecularThinGlassModelFeature()
Properties
RefractiveIndex
Gets or sets the refractive index of the material.
[DataMember(2)]
[DataMemberRange(1, 5, 0.01, 0.1, 3)]
public float RefractiveIndex { get; set; }
Property Value
- float
The alpha.
Methods
Equals(MaterialSpecularThinGlassModelFeature)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MaterialSpecularThinGlassModelFeature other)
Parameters
other
MaterialSpecularThinGlassModelFeatureAn object to compare with this object.
Returns
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.
MultipassGeneration(MaterialGeneratorContext)
Called during prepass, used to enumerate extra passes.
public override void MultipassGeneration(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.