Fix Raycast at Steep Angles EEVEE

I’m using the raycast node in shader nodes to blend between objects but there’s an issue where the data is being flattened due to the viewing angle.

How can I offset/stretch the raycasts position to shrinkwrap the mesh or just expand when looking at steeper angles?

(Cannot use the geo nodes version, working with instances)