Checking whether textures are equivalent

Hi, I made a suggestion for adding another type for the “Equal” node. The suggestion was for 2D Texture. I am trying to check whether a 2D texture in a variable is equivalent to a 2D texture in another variable. Does anyone have a suggestion for another way to do this? Or would I just have to wait for that suggestion I made to be added?

That’s a good question… I’m still a newer effect creator myself but a node to check equivilancy like this could prove really useful.

Off the top of my head the only thing I can think of is to have an array of strings or textures where each index represents some object that has a texture. Then you could say “Does the texture on object 1 match the texture on object 2?” by simply comparing the index 0 and index 1 in the array. So when you set the textures of the objects you would also have to save the texture in that array too and keep track of which index represents which object.

Logic being like this:

myTexrureArray[0] === myTextureArray[1]

Though I hate the idea of keeping an array to keep track of data attributes that already exist, so it would be much better to be able to get the texture name or texture itself and compare it to the texture name or texture of another object.