I’m using BABYLON.ShaderMaterial to manually modify the vertex coordinates of a mesh by using vertex and fragment shaders.
The mesh is visually rendered correctly on screen, but when I call the mesh.getVerticesData() method, the returned data is wrong and is not the vertex coordinates updated from the vertex shader. The data that I get is the same as from the original mesh shape. I think something is missing for the mesh to update properly.
Here is a demo with the code: https://playground.babylonjs.com/#GV266F#11
As seen in the demo, the bounding mesh does not obtain the same shape as the new mesh.
What have I missed here?