Search Unity

Video How to replace only specific shaders, and render everything else as normal.

Discussion in 'Audio & Video' started by AlphaSilverback, Aug 6, 2019.

  1. AlphaSilverback

    AlphaSilverback

    Joined:
    Aug 18, 2016
    Posts:
    10
    Hello everyone.

    The title says it all. I'm looking for a way to replace only specific shaders. The SetReplacementShader feature on the camera will only get me so far; I can't be bothered to make a replacement shader that includes all other shaders in my project.

    I'm looking for a function that replaces ONLY shaders with a specific keyword/tag or something. Does anyone know of a computationally cheap way? I made something myself, but it is very hacky and not very cheap.