Raycast doesn't detect my mesh

That is expcted behavior. Anytdisplacement you do in vertex shader is only visual. As far as I know those displacements have no physical impact. Only thing that could possibly interact with those are GPU sprites (since they use the depth buffer for physics simulation)