/// <summary> /// Generate a random heightmap using particle deposition 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 GenerateParticleDepositionHeightmap(int width, int depth, float min, float max, HeightmapParticleDepositionSettings settings) { _width = width; _depth = depth; _minimumHeight = min; _maximumHeight = max; _particleDepositionSettings = settings; _heightValues = new float[_width * _depth]; GenerateParticleDepositionHeightmap(); }
/// <summary> /// Generate a random heightmap using particle deposition 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 GenerateParticleDepositionHeightmap(int width, int depth, float min, float max, HeightmapParticleDepositionSettings settings) { _width = width; _depth = depth; _minimumHeight = min; _maximumHeight = max; _particleDepositionSettings = settings; _heightValues = new float[_width*_depth]; GenerateParticleDepositionHeightmap(); }