#include <PerlinNoise.h>
Static Public Member Functions | |
static float | noise (const rcrt::Point3D &q) |
static float | turbulence (const rcrt::Point3D &p, float detail, float quot) |
Static Private Member Functions | |
static float | fade (float t) |
static float | lerp (float t, float a, float b) |
static float | grad (int hash, float x, float y, float z) |
Static Private Attributes | |
static int | p [512] |
Definition at line 12 of file PerlinNoise.h.
static float PerlinNoise::noise | ( | const rcrt::Point3D & | q | ) | [inline, static] |
Definition at line 15 of file PerlinNoise.h.
References fade(), grad(), lerp(), p, rcrt::Point3D::x(), rcrt::Point3D::y(), and rcrt::Point3D::z().
Referenced by rcrt::WallMaterial::calcDistNormal(), rcrt::WallMaterial::sample(), and turbulence().
static float PerlinNoise::turbulence | ( | const rcrt::Point3D & | p, | |
float | detail, | |||
float | quot | |||
) | [inline, static] |
Definition at line 39 of file PerlinNoise.h.
References noise().
Referenced by rcrt::WoodTexture::getBump(), rcrt::WaterTexture::getBump(), and rcrt::WoodTexture::getColor().
static float PerlinNoise::fade | ( | float | t | ) | [inline, static, private] |
static float PerlinNoise::lerp | ( | float | t, | |
float | a, | |||
float | b | |||
) | [inline, static, private] |
static float PerlinNoise::grad | ( | int | hash, | |
float | x, | |||
float | y, | |||
float | z | |||
) | [inline, static, private] |
int PerlinNoise::p [static, private] |