terrain-map
ARCHIVED - repo for blog post http://www.vogt.world/writing/procedural-terrain-generation/
git clone https://git.vogt.world/terrain-map.git
Log | Files | README.md
← Commit log
commit
message
Adding back in multiple examples of complex erosion
author
Ben Vogt <[email protected]>
date
2016-05-14 15:24:34
stats
1 file(s) changed, 26 insertions(+), 0 deletions(-)
files
worker.js
 1diff --git a/worker.js b/worker.js
 2index 324d85a..788db44 100644
 3--- a/worker.js
 4+++ b/worker.js
 5@@ -9,10 +9,34 @@ self.addEventListener('message', function(e) {
 6       });
 7       terrain.generate(0.75, "standard");
 8       terrain.complexErosion({
 9-        carryingCapacity: 1.0,
10-        depositionSpeed: 0.1,
11+        carryingCapacity: 1.5,
12+        depositionSpeed: 0.03,
13+        iterations: 10,
14+        drops: 1000000,
15+        one: "standard",
16+        two: "complexErosion-1000000-10ipd"
17+      });
18+      terrain.complexErosion({
19+        carryingCapacity: 1.5,
20+        depositionSpeed: 0.03,
21+        iterations: 20,
22+        drops: 1000000,
23+        one: "standard",
24+        two: "complexErosion-1000000-20ipd"
25+      });
26+      terrain.complexErosion({
27+        carryingCapacity: 1.5,
28+        depositionSpeed: 0.03,
29+        iterations: 3,
30+        drops: 4000000,
31+        one: "standard",
32+        two: "complexErosion-4000000-3ipd"
33+      });
34+      terrain.complexErosion({
35+        carryingCapacity: 1.5,
36+        depositionSpeed: 0.03,
37         iterations: 3,
38-        drops: 2000000,
39+        drops: 8000000,
40         one: "standard",
41         two: "complexErosion-8000000-3ipd"
42       });