Getting the color of an object an empty collides with?
Ok I figured it out. Moving the empty around gives me the color of the nearest surface once it hits the cube. Nearest surface is based on the objects polygon's center points and material indices. I would have preferred to get the RGB values directly but I can put those in a table later. Here are my nodes.