Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    MaterialTessellationBaseFeature Class

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

    The displacement map for a surface material feature.

    System.Object → MaterialFeature → MaterialTessellationBaseFeature
    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)
    | Improve this Doc View Source

    Constructors


    MaterialTessellationBaseFeature()

    protected MaterialTessellationBaseFeature()
    | Improve this Doc View Source

    Fields


    hasAlreadyTessellationFeature

    protected bool hasAlreadyTessellationFeature
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    Overrides
    MaterialFeature.GenerateShader(MaterialGeneratorContext)

    Inherited Members

    MaterialFeature.Enabled
    MaterialFeature.Visit(MaterialGeneratorContext)
    MaterialFeature.MultipassGeneration(MaterialGeneratorContext)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation