MaterialEmissiveMapFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
[DataContract("MaterialEmissiveMapFeature")]
[Display("Emissive Map", null)]
public class MaterialEmissiveMapFeature : MaterialFeature, IMaterialEmissiveFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IMaterialStreamProvider
Name | Description | |
---|---|---|
Constructors | ||
MaterialEmissiveMapFeature() | Initializes a new instance of the MaterialEmissiveMapFeature class. |
|
MaterialEmissiveMapFeature(IComputeColor) | Initializes a new instance of the MaterialEmissiveMapFeature class. |
|
Properties | ||
EmissiveMap | Gets or sets the diffuse map. |
|
Intensity | Gets or sets the intensity. |
|
UseAlpha | Gets or sets a value indicating whether to use the alpha component of the emissive map as main alpha color for the material. |
|
Methods | ||
Equals(IMaterialShadingModelFeature) | ||
GenerateShader(MaterialGeneratorContext) | ||
GetStreams() |
Constructors
MaterialEmissiveMapFeature()
Initializes a new instance of the MaterialEmissiveMapFeature class.
public MaterialEmissiveMapFeature()
MaterialEmissiveMapFeature(IComputeColor)
Initializes a new instance of the MaterialEmissiveMapFeature class.
public MaterialEmissiveMapFeature(IComputeColor emissiveMap)
Parameters
Type | Name | Description |
---|---|---|
IComputeColor | emissiveMap | The emissive map. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | emissiveMap |
Properties
EmissiveMap
Gets or sets the diffuse map.
[Display("Emissive Map", null)]
[DataMember(10)]
public IComputeColor EmissiveMap { get; set; }
Property Value
Type | Description |
---|---|
IComputeColor | The diffuse map. |
Intensity
Gets or sets the intensity.
[Display("Intensity", null)]
[DataMember(20)]
public IComputeScalar Intensity { get; set; }
Property Value
Type | Description |
---|---|
IComputeScalar | The intensity. |
UseAlpha
Gets or sets a value indicating whether to use the alpha component of the emissive map as main alpha color for the material.
[DataMember(30)]
public bool UseAlpha { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Equals(IMaterialShadingModelFeature)
public bool Equals(IMaterialShadingModelFeature other)
Parameters
Type | Name | Description |
---|---|---|
IMaterialShadingModelFeature | other |
Returns
Type | Description |
---|---|
System.Boolean |
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |
Overrides
GetStreams()
public IEnumerable<MaterialStreamDescriptor> GetStreams()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MaterialStreamDescriptor> |