Better norm factor for Perlin

This commit is contained in:
Dominik Moritz Roth 2023-06-13 10:17:30 +02:00
parent 47815f8a5f
commit afda96a873

View File

@ -96,7 +96,7 @@ class Perlin_Noise():
self.octaves = octaves self.octaves = octaves
self.magic = 3.141592653589 # Axis offset, should be (kinda) irrational self.magic = 3.141592653589 # Axis offset, should be (kinda) irrational
# We want to genrate samples, that approx ~N(0,1) # We want to genrate samples, that approx ~N(0,1)
self.normal_factor = 0.0471 self.normal_factor = 14/99
self.reset() self.reset()
def __call__(self, shape): def __call__(self, shape):