Geometry node proximity to vertex color conversion

I am doing this water foam shader that uses geometry nodes proximity and then atribute node on the shader to get the parameter from geometry node. But it only works on cycles, i was wondering is its possible to convert it to vertex color somehow and use it in eevee as well.

thanks