I am instancing shapes on the points of a mesh, assigning each instance an index, which I then put into the group output to be used in the shader to make each instance a different colour.
I am doing this by capturing the Index (I have tried ID as well) before realising the instances, and this is working fine.
The problem comes after I am applying the boolean, which makes sense to me since I am modifying the instances and new geometry is being created, but I would still like to be able to have each instance be one solid colour. Instead, it looks like the new geometry is created with differing Indexes than what I would expect based on the attribute I am capturing. Is there some way to reapply the Index that I have captured? See the images for the output I am getting.
Apologies if any of my terminology is incorrect, I am still learning.