Is shader applicable to a full glb model/tileset only

I have a question. Can the customShader code be applied to a part of glb model or separate node in a tileset. Or is it full model applicable only? Thank you