MaterialTessellationBaseFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
The displacement map for a surface material feature.
Derived from MaterialTessellationBaseFeature: MaterialTessellationFlatFeature MaterialTessellationPNFeature
[DataContract("MaterialTesselationFeature")]
public abstract class MaterialTessellationBaseFeature : MaterialFeature, IMaterialTessellationFeature, IMaterialFeature, IMaterialShaderGenerator
Name | Description | |
---|---|---|
Constructors | ||
MaterialTessellationBaseFeature() | ||
Fields | ||
hasAlreadyTessellationFeature | ||
Properties | ||
AdjacentEdgeAverage | Gets or sets the adjacent edges average activation state. |
|
TriangleSize | Gets or sets the desired triangle size. |
|
Methods | ||
AddAdjacentEdgeAverageMacros(MaterialShaderStage, MaterialGeneratorContext) | ||
AddAdjacentEdgeAverageShaders(MaterialShaderStage, MaterialGeneratorContext) | ||
GenerateShader(MaterialGeneratorContext) |
Constructors
MaterialTessellationBaseFeature()
protected MaterialTessellationBaseFeature()
Fields
hasAlreadyTessellationFeature
protected bool hasAlreadyTessellationFeature
Field Value
Type | Description |
---|---|
System.Boolean |
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
Type | Description |
---|---|
System.Boolean |
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
Type | Description |
---|---|
System.Single |
Methods
AddAdjacentEdgeAverageMacros(MaterialShaderStage, MaterialGeneratorContext)
public void AddAdjacentEdgeAverageMacros(MaterialShaderStage stage, MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialShaderStage | stage | |
MaterialGeneratorContext | context |
AddAdjacentEdgeAverageShaders(MaterialShaderStage, MaterialGeneratorContext)
public void AddAdjacentEdgeAverageShaders(MaterialShaderStage stage, MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialShaderStage | stage | |
MaterialGeneratorContext | context |
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |