Class MaterialDiffuseMapFeature
A Diffuse map for the diffuse material feature.
[DataContract("MaterialDiffuseMapFeature")]
[Display("Diffuse Map", null)]
public class MaterialDiffuseMapFeature : MaterialFeature, IMaterialDiffuseFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
- Inheritance
-
MaterialDiffuseMapFeature
- Implements
- Inherited Members
Constructors
MaterialDiffuseMapFeature()
Initializes a new instance of the MaterialDiffuseMapFeature class.
public MaterialDiffuseMapFeature()
MaterialDiffuseMapFeature(IComputeColor)
Initializes a new instance of the MaterialDiffuseMapFeature class.
public MaterialDiffuseMapFeature(IComputeColor diffuseMap)
Parameters
diffuseMap
IComputeColorThe diffuse map.
Fields
ColorBaseStream
public static readonly MaterialStreamDescriptor ColorBaseStream
Field Value
DiffuseStream
public static readonly MaterialStreamDescriptor DiffuseStream
Field Value
Properties
DiffuseMap
Gets or sets the diffuse map.
[Display("Diffuse Map", null)]
public IComputeColor DiffuseMap { get; set; }
Property Value
- IComputeColor
The diffuse map.
Methods
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.
GetStreams()
Gets the streams used by a material
public IEnumerable<MaterialStreamDescriptor> GetStreams()
Returns
- IEnumerable<MaterialStreamDescriptor>
IEnumerable<MaterialStream>.