Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IMaterialHairDiscardFunction Interface

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

    Common interface for discarding pixels for the hair shading model.

    public interface IMaterialHairDiscardFunction
    Name Description
    Methods
    Generate(MaterialGeneratorContext, ValueParameterKey<Single>)

    Generates the shader class source used for the shader composition.

    | Improve this Doc View Source

    Methods


    Generate(MaterialGeneratorContext, ValueParameterKey<Single>)

    Generates the shader class source used for the shader composition.

    ShaderSource Generate(MaterialGeneratorContext context, ValueParameterKey<float> uniqueAlphaThresholdKey)
    Parameters
    Type Name Description
    MaterialGeneratorContext context
    ValueParameterKey<System.Single> uniqueAlphaThresholdKey
    Returns
    Type Description
    ShaderSource

    ShaderSource.


    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