I'm trying to make a procedural object where I can put a pixel art texture and get a voxel object. I want to be able to change one image and have either the geometry nodes or the material automatically use the same image. This is what I have so far.
I have a grid that goes through a Mesh to Points node and instanciate cubes, then merge by distance to make it one mesh. The texture's alpha selects the points.
The material is simple. Just texture through emission node.
With this result:
I tried making the color an output and attribute, then putting that attribute in the Material color.
but I get this
How can I make this work?