Empeld
Empeld plugin documentation.
|
Perlin noise implementation More...
Public Member Functions | |
Perlin (IPseudoRandom provider, int frequency, int levels) | |
Initializes a perlin noise generator More... | |
Perlin (int seed, int frequency, int levels) | |
Initialize an instance of perlin noise More... | |
override float | GetValue (int x, int y, int z) |
Get a value between 0-1 More... | |
override float | GetValue (int x, int y) |
Get a 2D value between 0-1 More... | |
Public Member Functions inherited from pluginbase.Helpers.Computative.ValuePoint3D | |
ValuePoint3D | Mix (ValuePoint3D with, float sourceOpacity) |
Mix this value with another one at a certain ratio More... | |
ValuePoint3D | Lighten (ValuePoint3D with) |
Lighten this value by another one More... | |
ValuePoint3D | Darken (ValuePoint3D with) |
Darken this value by another one More... | |
ValuePoint3D | CustomCombine (ValuePoint3D with, Combiner3D.CombinerOperator func) |
Combine two values using a custom combiner More... | |
ValuePoint3D | CustomManipulator (Manip3D.ManipOperator func) |
Manipulate this value with a custom manipulator More... | |
ValuePoint3D | Abs () |
Absolute value More... | |
ValuePoint3D | Invert () |
Invert the value from a 0-1 range More... | |
ValuePoint3D | Brightness (float amount) |
Adjust brightness. Takes in -1 to 1f More... | |
ValuePoint3D | Contrast (float amount) |
Adjusts contract from -1 to 1 More... | |
ValuePoint3D | Scale (float factor) |
Scale the specified factor and clamp More... | |
ValuePoint3D | LinearBounds (float min, float max) |
Linearly interpolates to squish between the bounds More... | |
ValuePoint3D | Threshold (float threshold) |
Threshold the specified threshold. Returns 0 if below, otherwise 1f More... | |
ValuePoint3D | Gamma (float gamma) |
Gamma the specified gamma. Range 0f - 2f More... | |
ValuePoint3D | Clamp () |
Clamp this value between 0 and 1 More... | |
ValuePoint3D | Clamp (float min, float max) |
Clamp this value between a min and max More... | |
Public Attributes | |
readonly int | Frequency |
Frequency of the perlin noise More... | |
readonly int | Levels |
Number of levels incorporated into perlin noise More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from pluginbase.Helpers.Computative.ValuePoint3D | |
static ValuePoint3D | operator+ (ValuePoint3D a, ValuePoint3D b) |
Add two value points together More... | |
static ValuePoint3D | operator- (ValuePoint3D a, ValuePoint3D b) |
Subtract two value points More... | |
static ValuePoint3D | operator* (ValuePoint3D a, ValuePoint3D b) |
Multiply two value points More... | |
static ValuePoint3D | operator/ (ValuePoint3D a, ValuePoint3D b) |
Divide one value by another More... | |
Perlin noise implementation
pluginbase.Helpers.Computative.Algorithms.Perlin.Perlin | ( | IPseudoRandom | provider, |
int | frequency, | ||
int | levels | ||
) |
Initializes a perlin noise generator
provider | Random Provider. |
frequency | Frequency. |
levels | Levels. |
Attribute: levels
;
Attribute: levels
;
Attribute: level
= (int)(Frequency / (float)Math.Pow(2, level));
Attribute: level
= (1f / (float)Math.Pow(2, level)) / (float)maxWeight;
pluginbase.Helpers.Computative.Algorithms.Perlin.Perlin | ( | int | seed, |
int | frequency, | ||
int | levels | ||
) |
Initialize an instance of perlin noise
seed | Seed. |
frequency | Frequency. |
levels | Levels. |
|
virtual |
Get a value between 0-1
x | A System.Int32 |
y | A System.Int32 |
z | A System.Int32 |
Attribute: level
;
Attribute: level
;
Implements pluginbase.Helpers.Computative.ValuePoint3D.
|
virtual |
Get a 2D value between 0-1
x | A System.Int32 |
y | A System.Int32 |
Attribute: level
;
Attribute: level
;
Implements pluginbase.Helpers.Computative.ValuePoint3D.
readonly int pluginbase.Helpers.Computative.Algorithms.Perlin.Frequency |
Frequency of the perlin noise
readonly int pluginbase.Helpers.Computative.Algorithms.Perlin.Levels |
Number of levels incorporated into perlin noise