In the above node setup:
- There is a meshline with 2 point count
- A plane is added as instance to the line
- There is a
Set Material Index
node which gets its input from index node. - The plane has 2 materials of 2 different colors.
So I am expecting the 2 instances to have 2 colors (material index 0 and 1). However, as can be seen in the screnshot both instances have the same color. Am I missing anything?
Edit: Just to add to the answer from Lutzi, apart from realizing the instances we also need to divide the index with face count. Since the realized instances are actually faces, we need to assign the material for all faces of every instance. In case of plane, it works without the division by face count for the obvious reason :)