Table of Contents

Class MaterialTessellationBaseFeature

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

The displacement map for a surface material feature.

[DataContract("MaterialTesselationFeature")]
public abstract class MaterialTessellationBaseFeature : MaterialFeature, IMaterialTessellationFeature, IMaterialFeature, IMaterialShaderGenerator
Inheritance
MaterialTessellationBaseFeature
Implements
Derived
Inherited Members

Constructors

MaterialTessellationBaseFeature()

protected MaterialTessellationBaseFeature()

Fields

hasAlreadyTessellationFeature

protected bool hasAlreadyTessellationFeature

Field Value

bool

Properties

AdjacentEdgeAverage

Gets or sets the adjacent edges average activation state.

[DataMember(20)]
[Display("Adjacent Edges Average", null)]
public bool AdjacentEdgeAverage { get; set; }

Property Value

bool

TriangleSize

Gets or sets the desired triangle size.

[DataMember(10)]
[DataMemberRange(1, 100, 1, 5, 2)]
[Display("Triangle Size", null)]
public float TriangleSize { get; set; }

Property Value

float

Methods

AddAdjacentEdgeAverageMacros(MaterialShaderStage, MaterialGeneratorContext)

public void AddAdjacentEdgeAverageMacros(MaterialShaderStage stage, MaterialGeneratorContext context)

Parameters

stage MaterialShaderStage
context MaterialGeneratorContext

AddAdjacentEdgeAverageShaders(MaterialShaderStage, MaterialGeneratorContext)

public void AddAdjacentEdgeAverageShaders(MaterialShaderStage stage, MaterialGeneratorContext context)

Parameters

stage MaterialShaderStage
context MaterialGeneratorContext

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.