I designed a parametric wall with windows in geometry nodes. I can change the width, height, window count etc. Now, I am trying to assign differnet parts of a material node tree to certain parts of the geometry node tree. (For example I would like to define the borders, shown in the image below, sepeterately for the different parts of the wall so they all have the same distance from the edges.)
I could maybe somehow do it by recreating all the calculations from the geometry node tree in the shader nodes. But that seems rather laborious. I tried doing it by assigning attributes in geometry nodes and referencing them in the shader as suggested in this post:
How to assign a different material color to each geometry nodes instance
But by using the realize instance node, I loose the texture object coordinates per instance, which I rely upon for defining the borders. Is there any way of transferring attributes without the realize instance node? Or alternatively to keep the per instance texture object coordinates?
Thanks in advance, Ollie