Fixed heightmap creation

now it works with indexbuffer