Add a roughness control
This commit is contained in:
parent
7658210da4
commit
6a43c10b9f
2 changed files with 19 additions and 6 deletions
|
|
@ -93,6 +93,7 @@ class Terrain: NSObject {
|
|||
print("Couldn't create algorithm")
|
||||
return nil
|
||||
}
|
||||
(gen as DiamondSquareGenerator).roughness = 0.075
|
||||
generator = gen
|
||||
|
||||
super.init()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue