Table of Contents

Class MaterialEmissiveMapFeature

Namespace
Stride.Rendering.Materials
Assembly
Stride.Rendering.dll
[DataContract("MaterialEmissiveMapFeature")]
[Display("Emissive Map", null)]
public class MaterialEmissiveMapFeature : MaterialFeature, IMaterialEmissiveFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IMaterialStreamProvider
Inheritance
MaterialEmissiveMapFeature
Implements
Inherited Members

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

emissiveMap IComputeColor

The emissive map.

Exceptions

ArgumentNullException

emissiveMap

Properties

EmissiveMap

Gets or sets the diffuse map.

[Display("Emissive Map", null)]
[DataMember(10)]
public IComputeColor EmissiveMap { get; set; }

Property Value

IComputeColor

The diffuse map.

Intensity

Gets or sets the intensity.

[Display("Intensity", null)]
[DataMember(20)]
public IComputeScalar Intensity { get; set; }

Property Value

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

bool

true if [use alpha]; otherwise, false.

Methods

Equals(IMaterialShadingModelFeature)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IMaterialShadingModelFeature other)

Parameters

other IMaterialShadingModelFeature

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.

GetStreams()

Gets the streams used by a material

public IEnumerable<MaterialStreamDescriptor> GetStreams()

Returns

IEnumerable<MaterialStreamDescriptor>

IEnumerable<MaterialStream>.