Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
  • Documentation
  • Manual
  • API
  • Release Notes
  • Tutorials
    Show / Hide Table of Contents

    MaterialEmissiveMapFeature Class

    Namespace: Stride.Rendering.Materials
    Assembly: Stride.Rendering.dll
    System.Object → MaterialFeature → MaterialEmissiveMapFeature
    Derived from MaterialEmissiveMapFeature:

    [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()
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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

    true if [use alpha]; otherwise, false.

    | Improve this Doc View Source

    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
    MaterialFeature.GenerateShader(MaterialGeneratorContext)

    GetStreams()

    public IEnumerable<MaterialStreamDescriptor> GetStreams()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<MaterialStreamDescriptor>

    Inherited Members

    MaterialFeature.Enabled
    MaterialFeature.Visit(MaterialGeneratorContext)
    MaterialFeature.MultipassGeneration(MaterialGeneratorContext)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article
    In This Article
    • Constructors
      • MaterialEmissiveMapFeature()
      • MaterialEmissiveMapFeature(IComputeColor)
    • Properties
      • EmissiveMap
      • Intensity
      • UseAlpha
    • Methods
      • Equals(IMaterialShadingModelFeature)
      • GenerateShader(MaterialGeneratorContext)
      • GetStreams()
    • Inherited Members
    • Extension Methods

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation