PerlinNoise Class Reference

#include <PerlinNoise.h>

List of all members.

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]


Detailed Description

Definition at line 12 of file PerlinNoise.h.


Member Function Documentation

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]

Definition at line 55 of file PerlinNoise.h.

Referenced by noise().

static float PerlinNoise::lerp ( float  t,
float  a,
float  b 
) [inline, static, private]

Definition at line 57 of file PerlinNoise.h.

Referenced by noise().

static float PerlinNoise::grad ( int  hash,
float  x,
float  y,
float  z 
) [inline, static, private]

Definition at line 59 of file PerlinNoise.h.

Referenced by noise().


Member Data Documentation

int PerlinNoise::p [static, private]

Definition at line 65 of file PerlinNoise.h.

Referenced by noise().


The documentation for this class was generated from the following files:
Generated on Thu Jan 31 19:32:10 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3