update terrain heightmap factor