Search Results for

    Show / Hide Table of Contents

    Method GenerateShader

    GenerateShader(String, ModularShader, Boolean)

    Generates a shader with all shader variants

    Declaration
    public static void GenerateShader(string path, ModularShader shader, bool hideVariants = false)
    Parameters
    Type Name Description
    String path

    path of the folder to put the shader files

    ModularShader shader

    Modular shader to use

    Boolean hideVariants

    Hide variants from the shader selector on the material, showing only the shader with all variants disabled from the menu

    GenerateShader(String, ModularShader, Action<StringBuilder, ShaderGenerator.ShaderContext>, Boolean)

    Generates a shader with all shader variants, you can give a custom PostGeneration action to handle the shader result for some custom modifications (build keywords are still available at this stage)

    Declaration
    public static void GenerateShader(string path, ModularShader shader, Action<StringBuilder, ShaderGenerator.ShaderContext> postGeneration, bool hideVariants = false)
    Parameters
    Type Name Description
    String path

    path of the folder to put the shader files

    ModularShader shader

    Modular shader to use

    Action<StringBuilder, ShaderGenerator.ShaderContext> postGeneration

    Actions to performs post generation and before cleanup

    Boolean hideVariants

    Hide variants from the shader selector on the material, showing only the shader with all variants disabled from the menu

    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX