how to get the ambient light color in the vertex shader and pix shader

?

you can use built-in variable
UNITY_LIGHTMODEL_AMBIENT