How to add a custom shader to the standard or PBR material shaders?

You should not mess with the UniformBuffer._dynamic property, it’s an internal property that is not meant to be modified by external code:

2 Likes