mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-11-11 13:20:24 +01:00
Adjust number of octaves in function of map size
This commit is contained in:
parent
538bfb6d6d
commit
ed34dec4fa
|
@ -22,7 +22,7 @@ n = np.zeros((mapsize, mapsize))
|
||||||
#micronoise_depth = 0.05
|
#micronoise_depth = 0.05
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
"octaves" : 8,
|
"octaves" : int(np.log2(mapsize)),
|
||||||
"persistence" : 0.5,
|
"persistence" : 0.5,
|
||||||
"lacunarity" : 2.,
|
"lacunarity" : 2.,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user