Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    MaterialDiffuseMapFeature Class

    Namespace: Stride.Rendering.Materials
    Assembly: Stride.Rendering.dll

    A Diffuse map for the diffuse material feature.

    System.Object → MaterialFeature → MaterialDiffuseMapFeature
    Derived from MaterialDiffuseMapFeature:

    [DataContract("MaterialDiffuseMapFeature")]
    [Display("Diffuse Map", null)]
    public class MaterialDiffuseMapFeature : MaterialFeature, IMaterialDiffuseFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
    Name Description
    Constructors
    MaterialDiffuseMapFeature()

    Initializes a new instance of the MaterialDiffuseMapFeature class.

    MaterialDiffuseMapFeature(IComputeColor)

    Initializes a new instance of the MaterialDiffuseMapFeature class.

    Fields
    ColorBaseStream
    DiffuseStream
    Properties
    DiffuseMap

    Gets or sets the diffuse map.

    Methods
    GenerateShader(MaterialGeneratorContext)
    GetStreams()
    | Improve this Doc View Source

    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
    Type Name Description
    IComputeColor diffuseMap

    The diffuse map.

    | Improve this Doc View Source

    Fields


    ColorBaseStream

    public static readonly MaterialStreamDescriptor ColorBaseStream
    Field Value
    Type Description
    MaterialStreamDescriptor

    DiffuseStream

    public static readonly MaterialStreamDescriptor DiffuseStream
    Field Value
    Type Description
    MaterialStreamDescriptor
    | Improve this Doc View Source

    Properties


    DiffuseMap

    Gets or sets the diffuse map.

    [Display("Diffuse Map", null)]
    public IComputeColor DiffuseMap { get; set; }
    Property Value
    Type Description
    IComputeColor

    The diffuse map.

    | Improve this Doc View Source

    Methods


    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

    Back to top

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