Table of Contents

Class MaterialSpecularMapFeature

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

A Specular map for the specular material feature.

[DataContract("MaterialSpecularMapFeature")]
[Display("Specular Map", null)]
public class MaterialSpecularMapFeature : MaterialFeature, IMaterialSpecularFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
Inheritance
MaterialSpecularMapFeature
Implements
Inherited Members

Constructors

MaterialSpecularMapFeature()

Initializes a new instance of the MaterialSpecularMapFeature class.

public MaterialSpecularMapFeature()

Properties

Intensity

Gets or sets the specular intensity.

[DataMember(20)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar Intensity { get; set; }

Property Value

IComputeScalar

The map specifying the intensity of the specular reflection. An intensity of 0 means no reflection. An intensity of 1 means full reflection.

IsEnergyConservative

Gets or sets a value indicating whether this instance is energy conservative.

[DataMember(30)]
[Display("Energy conservative", null)]
public bool IsEnergyConservative { get; set; }

Property Value

bool

true if this instance is energy conservative; otherwise, false.

SpecularMap

Gets or sets the specular map.

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

Property Value

IComputeColor

The specular 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>.