Turbulent worm noise.
More...
#include <wormnoise.h>
|
double | alpha = 0.5 |
| Amplitude attenuation coefficient.
|
|
double | lambda = 0.5 |
| Wavelength amplification coefficient.
|
|
int | octaves = 8 |
| Number of octaves.
|
|
bool | sign = true |
| Sign convention, used for normal computation.
|
|
Box2 | box = Box2::Infinity |
| Domain, set as infinite for base class.
|
|
|
Vector2 | Hash (const Vector2 &) const |
| Hash function for worm noise.
|
|
Matrix | Local (const Vector2 &) const |
| Compute the local neighborhood in the one-ring aroung a point.
|
|
static const double | epsilon = 1e-6 |
| \epsilon; value for partial derivatives
|
|
Turbulent worm noise.
- Author
- Hugo Schott
◆ TurbulenceWormNoise()
TurbulenceWormNoise::TurbulenceWormNoise |
( |
double | t, |
|
|
double | alpha, |
|
|
double | lambda, |
|
|
int | octaves ) |
Create a turbulent noise.
- Parameters
-
t | Thickness. |
alpha | Amplitude attenuation factor (~0.5, should be less than 1.0). |
lambda | Wavelength attenuation factor (~0.5, should be less than 1.0). |
octaves | Number of octaves. |
◆ Value()
double TurbulenceWormNoise::Value |
( |
const Vector2 & | p | ) |
const |
|
virtual |