Need help with weapon clipping/multiple meshes

Godot Version

4.3 Stable

Question

I made a first-person shooter(using this tutorial, in the tutorial (E19) he tells me to convert the standardmaterial into a shadermaterial and then modifying the shader code. This works fine for a model with just one or two meshes, but my weapon consists of an inherited scene with a bunch of meshes, nodes and bone-attachments. I don’t want to go through each of the meshes and making a shadermaterial for each of them, and then repeating this for every item in my game. I wonder if there is an easier method, where you can load the shader onto every mesh using code or something. I tried doing this, and I got the clipping to stop, but the whole mesh had turned white.