@makeshift said:
My only problem now is that I’m not quite sure what happens to the normals and other variables in the shader related to the position of the vertices. Are e.g. the normals updated automatically?
No. No magic happens unless you code it, really. You supplied the normals in the mesh. The normals were not updated for the new position… and in fact there is no way they could have been since it is not known exactly which way a normal should point once its vertex has moved. That would be based on the rest of the mesh.
For water, this almost never matters… or you can pick some arbitrary deformation. But this is not something your GPUA “Graphics Processing Unit” is a specialized circuit designed to rapidly manipulate and alter memory in such a way so as to accelerate the building of images in a frame buffer intended for output to a display. GPUs are used in embedded systems, mobile phones, personal computers, workstations, and game consoles. could know without you providing that in the shader.