I recently started using babylon.js and am experimenting with the CreateGroundFromHeightMap function. I want to change the URL for the Height Map parameter in babylon.js but I'm unsure how to do so.
Here is the code I have written to create it:
var ground = BABYLON.Mesh.CreateGroundFromHeightMap("ground", "textures/heightMap3.png",1000, 1000, 100,-100, 100, scene, false);
Do I need to completely delete the current ground instance and load a new one, or is there another way to update the height map URL? If deletion is necessary, should I only use: ground.dispose()?
Thank you for any assistance.