Unify mesh color and surface Shader

Hi all,
Is there a method to assign the mesh color to the surface shader?


I’ve also noticed when raytraced, the surface gets relatively the same color as the mesh, as opposed to the rendered mode.


Would very much appreciate it if someone could explain this.
test01.3dm (74.2 KB)
test01.gh (9.1 KB)