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

**URL:** <https://forum.babylonjs.com/t/shadows-and-pick-points-are-not-updated-after-modifying-vertex-information-using-the-materialplugin/44209>\
**Category:** Questions\
**Tags:** shader, nodematerial\
**Created:** [September 17, 2023, 9:33am UTC](https://forum.babylonjs.com/t/shadows-and-pick-points-are-not-updated-after-modifying-vertex-information-using-the-materialplugin/44209 "2023-09-17T09:33:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangyahan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zhangyahan/32/31789_2.png) [@zhangyahan](https://forum.babylonjs.com/u/zhangyahan)\
**Post date:** [September 17, 2023, 9:33am UTC](https://forum.babylonjs.com/t/shadows-and-pick-points-are-not-updated-after-modifying-vertex-information-using-the-materialplugin/44209/1 "2023-09-17T09:33:03Z")

</div>

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.

> **[Babylon.js Playground](https://playground.babylonjs.com/#ZY7CAL%237)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

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

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 17, 2023, 12:17pm UTC](https://forum.babylonjs.com/t/shadows-and-pick-points-are-not-updated-after-modifying-vertex-information-using-the-materialplugin/44209/2 "2023-09-17T12:17:05Z")

</div>

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.
