Adjust number of octaves in function of map size

This commit is contained in:
Gael-de-Sailly 2020-04-12 17:26:37 +02:00
parent 538bfb6d6d
commit ed34dec4fa

View File

@ -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.,
} }