/// <summary> /// Generate a random heightmap using fault line deformation and the passed parameters. /// </summary> /// <param name="width"></param> /// <param name="depth"></param> /// <param name="min"></param> /// <param name="max"></param> /// <param name="settings"></param> public void GenerateFaultHeightmap(int width, int depth, float min, float max, HeightmapFaultSettings settings) { _width = width; _depth = depth; _minimumHeight = min; _maximumHeight = max; _faultSettings = settings; _heightValues = new float[_width * _depth]; GenerateFaultHeightmap(); }
/// <summary> /// Generate a random heightmap using fault line deformation and the passed parameters. /// </summary> /// <param name="width"></param> /// <param name="depth"></param> /// <param name="min"></param> /// <param name="max"></param> /// <param name="settings"></param> public void GenerateFaultHeightmap(int width, int depth, float min, float max, HeightmapFaultSettings settings) { _width = width; _depth = depth; _minimumHeight = min; _maximumHeight = max; _faultSettings = settings; _heightValues = new float[_width*_depth]; GenerateFaultHeightmap(); }