Table of Contents

Class MaterialDiffuseMapFeature

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

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 IComputeColor

The diffuse map.

Fields

ColorBaseStream

public static readonly MaterialStreamDescriptor ColorBaseStream

Field Value

MaterialStreamDescriptor

DiffuseStream

public static readonly MaterialStreamDescriptor DiffuseStream

Field Value

MaterialStreamDescriptor

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 MaterialGeneratorContext

The context.

GetStreams()

Gets the streams used by a material

public IEnumerable<MaterialStreamDescriptor> GetStreams()

Returns

IEnumerable<MaterialStreamDescriptor>

IEnumerable<MaterialStream>.