Class MaterialTessellationBaseFeature
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
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
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
Methods
AddAdjacentEdgeAverageMacros(MaterialShaderStage, MaterialGeneratorContext)
public void AddAdjacentEdgeAverageMacros(MaterialShaderStage stage, MaterialGeneratorContext context)
Parameters
stage
MaterialShaderStagecontext
MaterialGeneratorContext
AddAdjacentEdgeAverageShaders(MaterialShaderStage, MaterialGeneratorContext)
public void AddAdjacentEdgeAverageShaders(MaterialShaderStage stage, MaterialGeneratorContext context)
Parameters
stage
MaterialShaderStagecontext
MaterialGeneratorContext
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.