Class MaterialGlossinessMapFeature
A smoothness map for the micro-surface material feature.
[DataContract("MaterialGlossinessMapFeature")]
[Display("Gloss map", null)]
public class MaterialGlossinessMapFeature : MaterialFeature, IMaterialMicroSurfaceFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
  - Inheritance
 - 
      objectMaterialGlossinessMapFeature
 
- Implements
 
- Inherited Members
 
Constructors
MaterialGlossinessMapFeature()
Initializes a new instance of the MaterialGlossinessMapFeature class.
public MaterialGlossinessMapFeature()
  MaterialGlossinessMapFeature(IComputeScalar)
Initializes a new instance of the MaterialGlossinessMapFeature class.
public MaterialGlossinessMapFeature(IComputeScalar glossinessMap)
  Parameters
glossinessMapIComputeScalarThe glossiness map.
Properties
GlossinessMap
Gets or sets the smoothness map.
[Display("Gloss map", null)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar GlossinessMap { get; set; }
  Property Value
- IComputeScalar
 The smoothness map.
Invert
Gets or sets a value indicating whether this MaterialGlossinessMapFeature is invert.
[Display("Invert", null)]
public bool Invert { get; set; }
  Property Value
- bool
 trueif invert; otherwise,false.
Methods
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public override void GenerateShader(MaterialGeneratorContext context)
  Parameters
contextMaterialGeneratorContextThe context.
GetStreams()
Gets the streams used by a material
public IEnumerable<MaterialStreamDescriptor> GetStreams()
  Returns
- IEnumerable<MaterialStreamDescriptor>
 IEnumerable<MaterialStream>.