It works when you pass one specific texture from GDScript to the shader, but how do you set f.e. the filter to filter_nearest, for any texture (TEXTURE) the shader is attached to? When I pass an array of specific textures, I also have to go through each one in the shader, which is probably not the way to go.
I could smooch you wet lip style right now. I dont know how a solution this unbelievably simple was this hard to find. Every result when searching this up was for things almost entirely unrelated, and you are probably the only person on the internet who has actually given an answer to this. You have saved me hours of time manually going through countless nodes in a scene and hitting “Make unique” on the material.