How do you draw the heightmap if you dont want the whole thing to be drawn. For example you have a 2km x 2km terrain, and the view distance is just 100m.
I guess I could call the DrawArrays function many times so lines of triangles are being drawn. But then if every square is 1m x 1m then I had to call that function 200 times(which is not much but I dont know how expensive is that function). ....or I could divide the heightmap to smaller squares, .....like 50m x 50m ones, ....and check which ones are within the view distance and draw only those.
Im wondering whats the professional way of doing this.
Also how is it done when you want to draw the terrain closer to you with better resolution(like 1m x 1m) and the terrain that is far away with lower resolution(like 10m x 10m)? Thanks!