Search Unity

Shader stripping in built-in render pipeline does not work?

Discussion in 'Shaders' started by Lynxed, Sep 20, 2021.

  1. Lynxed

    Lynxed

    Joined:
    Dec 9, 2012
    Posts:
    121
    I am tring to use shader_feature and shader_feature_local in Build-in pipeline, but it seems like it does not strip anything. My implemented
    IPreprocessShaders 

    OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)

    gets only a bunch of internal unity keywords in the data List, so i can't strip the variants by hand either. Please help!