The fragment shader material doesn't stay with the object when we drag it around?

How can I make the fragment shader material move with the ground/mesh when it is dragged around?

Is it because the custom vector shader is configured for world view projection?
Or do I need to set this explicitly using a function in Babylon.js?

hey you need use local position for make your material in this sample you use canvas view ( gl_coordinate )


Thank you very much for your reply. I resolved the issue by adding the UV coordinates as an attribute to the vertex shader (attribute vec2 uv;), passing them as a varying variable to the fragment shader (varying vec2 vUV;), and then assigning the vec2 st = vUV.xy;

Thanks once again.