Add a roughness control

This commit is contained in:
Eryn Wells 2018-11-10 17:52:37 -05:00
parent 7658210da4
commit 6a43c10b9f
2 changed files with 19 additions and 6 deletions

View file

@ -93,6 +93,7 @@ class Terrain: NSObject {
print("Couldn't create algorithm")
return nil
}
(gen as DiamondSquareGenerator).roughness = 0.075
generator = gen
super.init()