Table of Contents

Class MaterialGlossinessMapFeature

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

A smoothness map for the micro-surface material feature.

[DataContract("MaterialGlossinessMapFeature")]
[Display("Gloss map", null)]
public class MaterialGlossinessMapFeature : MaterialFeature, IMaterialMicroSurfaceFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
Inheritance
MaterialGlossinessMapFeature
Implements
Inherited Members

Constructors

MaterialGlossinessMapFeature()

Initializes a new instance of the MaterialGlossinessMapFeature class.

public MaterialGlossinessMapFeature()

MaterialGlossinessMapFeature(IComputeScalar)

Initializes a new instance of the MaterialGlossinessMapFeature class.

public MaterialGlossinessMapFeature(IComputeScalar glossinessMap)

Parameters

glossinessMap IComputeScalar

The glossiness map.

Properties

GlossinessMap

Gets or sets the smoothness map.

[Display("Gloss map", null)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar GlossinessMap { get; set; }

Property Value

IComputeScalar

The smoothness map.

Invert

Gets or sets a value indicating whether this MaterialGlossinessMapFeature is invert.

[Display("Invert", null)]
public bool Invert { get; set; }

Property Value

bool

true if invert; otherwise, false.

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