Shadows and pick points are not updated after modifying vertex information using the MaterialPlugin

When I use the material plugin to modify the mesh vertex Y coordinates, everything looks fine. However, when I used scene.pick().pickedPoint, I found that pickedPoint was still the Y coordinate before it was updated.

It shows 0 when you click on the ground, but it’s already set to -10 in the material plugin

Yes, picking code is not aware of any changes you might make in the vertex shader.

Unfortunately, there’s no solution to this, apart from using GPU picking => you can search for “GPU picking” in the forum, you should find a large number of posts on the subject.