I have around 200 small spheres that are a part of a 3D data plot and I want to color them based on their z position. The way this is done is by making a material that uses a color ramp based on the z coordinate of the object, and applying the material to every sphere.
The problem is that I want to export this to a glb/glTF and the color ramp node doesn’t function when exported. How can I convert my 1 material into a simple base color for every sphere? It is ok if every single sphere has a different material, its just that doing this by hand is very time consuming.
Thanks


