diff --git a/README.md b/README.md index ceb38d2..bb98f70 100644 --- a/README.md +++ b/README.md @@ -227,6 +227,12 @@ Generates random noise with default shape of aither first input or maximum of in - `random_chi2(seed, df,[shape])` or `randchi2`: generates a random tensor with Chi-squared distribution. Degrees of freedom `df` controls the shape. Sum of squared normal distributions. - `random_studentt(seed, df,[shape])` or `randt`: generates a random tensor with Student's t distribution. Has heavier tails than normal distribution, useful for robust noise. As `df` increases, approaches normal distribution. +### Noise Generation + +- `perlin(seed, scale, [octaves,[offset, [shape]]])` or `perlin_noise`: generates Perlin noise. `scale` controls the frequency of the noise, `octaves` adds additional layers of noise, `offset` offsets the noise pattern, `shape` controls the output shape (default is determined by node inputs and settings). +- `plasma(seed, scale, [octaves,[offset, [shape]]])` or `turbulence` or `plasma_noise`: generates Plasma noise. Same parameters as perlin noise. +- `voronoi(seed, scale, [shape])` or `voronoi_noise`: generates Voronoi noise. `scale` controls the density of the points, `shape` controls the output shape (default is determined by node inputs and settings). + ### Bitwise Operations Bitwise operations work with scalars, tensors, and lists, preserving bit patterns (especially important for floats where bit patterns are preserved, not values converted). diff --git a/more_math/Parser/MathExpr.g4 b/more_math/Parser/MathExpr.g4 index 088d918..cdaaf5a 100644 --- a/more_math/Parser/MathExpr.g4 +++ b/more_math/Parser/MathExpr.g4 @@ -385,7 +385,7 @@ WEIBULLDIST: 'randw' | 'random_weibull'; CHI2DIST: 'randchi2' | 'random_chi2'; STUDENTTDIST: 'randt' | 'random_studentt'; PERLIN: 'perlin' | 'perlin_noise'; -CELLULAR: 'cellular' | 'voronoi' | 'worley' | 'cellular_noise'; +CELLULAR: 'cellular' | 'voronoi' | 'worley' | 'cellular_noise'|'voronoi_noise'; PLASMA: 'plasma' | 'turbulence' | 'plasma_noise'; PLUS: '+';