Table of Contents

Class MaterialFeature

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

A material feature

[DataContract(Inherited = true)]
public abstract class MaterialFeature : IMaterialFeature, IMaterialShaderGenerator
Inheritance
MaterialFeature
Implements
Derived

Constructors

MaterialFeature()

protected MaterialFeature()

Properties

Enabled

Gets or sets a value indicating whether this IMaterialFeature is enabled.

[DataMember(-20)]
public bool Enabled { get; set; }

Property Value

bool

true if enabled; otherwise, false.

Methods

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public abstract void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.

MultipassGeneration(MaterialGeneratorContext)

Called during prepass, used to enumerate extra passes.

public virtual void MultipassGeneration(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.

Visit(MaterialGeneratorContext)

Generates the shader.

public void Visit(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.