Would you mind explaining to me what the “2darraylookupbyindex” is doing exactly? I am trying to wrap my head around using 2d arrays in my master material as well. I made another comment on one of Neuffex’s other posts here:
Perhaps I should start a new post for this. I got it sampling correctly but I am getting confused with the output. I think I just need to study the fundamentals of what is being output by these nodes a bit more. Perhaps what I am trying to accomplish is not possible, or I am just misunderstanding something.
Here is a video of where I am at, if anyone gets time to review it. The sub material functions are taking in a 2D texture, which I can change the inputs on, but I don’t think I want to change those because we want them applied to whatever texture we are feeding in. This texture information can be in whatever data form it needs, I just want to be able to separate the albedo, normals, etc. In this video, the material functions within the layer (Material function _ G, or “layer”)
Essentially my goal is to make a 2d array for the albedo, normal, etc. for each layer in my auto material. I also want to be able to apply material functions to the texture I sample from my array.