They’re not well documented, unfortunately, but CustomMaterial and PBRCustomMaterial allow you to inject shader code into different parts of the StandardMaterial or PBRMaterial mega-shaders. They’re laid out in this thread. Take a look; they might be a good solution, depending on how much you’re doing in your custom shader.
1 Like