I'm doing some mesh to voxel geo nodes and want to transform a given mesh into a blocky shape. Then I only want to colorize the top layer of the blocks. That's where the problem begins:
How can I get (index independent) a selection of points, which don't have another point right above them? A certain Z distance should be the deciding factor here (if possible).
Or is there a way to do it with texture coordinates, which look for the top most face and color the mesh from it's given Z coordinate and downwards?
I have been searching it for the past hour and been trying some things by myself, but no solution found so far.
Is this even possible?
Appreciate any help