So i am looking for a fast way to update a flat mesh with a height map.
Generating and adjusting the vertices each frame takes too long, so I thought of letting the GPU do the work by offsetting them in the materials.
So i want to have e.g. a plane consisting of 2 triangles, thus consisting of 2x2 vertices.
Then i want to have a 2x2 pixel texture, and have the material read the values from that file, and adjust the vertices acordingly.
My question is, how would I know which vertex is currently being processed, and how would i get a sibngle pixel value from a texture?