How can I combine a custom vertex function with builtin spatial material?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Garbaz

I would like the displace vertices of a mesh using a custom shader, but use a normal SpatialMaterial for the visual appearance.
I can’t find a better way than manually setting all the parameters in the fragment function.