- Edited
I have a TextureRect node, and I need to change it's color dinamicaly via Shaders.
I have used the method 2 of this tutorial
Each TextureRect has an export var called color. When "red" is selected, the TextureRect becomes red, when "blue", it becomes blue, and so on.
However, my scene has multiple instances of the same TextureRect, so when I change the color of one, they are all affected.
It might important to note that I am using Godot 3.6, and the textures aren't png, but rather svg files. I also tried using duplicate() to avoid resource sharing between the instances, but it didn't worked too.