SH::ShNoise< M, T, P > Class Template Reference

A Perlin noise/turbulence generator. More...

#include <ShLibNoiseImpl.hpp>

Collaboration diagram for SH::ShNoise< M, T, P >:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

template<int K>
static ShGeneric< M, T > noise (const ShGeneric< K, T > &p, bool useTexture)
 Generates a single octave Perlin noise with frequency 1 in each of K dimensions.
template<int K>
static ShGeneric< M, T > perlin (const ShGeneric< K, T > &p, bool useTexture)
 Generates a single octave Perlin improved noise with frequency 1 in each of K dimensions.
template<int K>
static ShGeneric< M, T > cellnoise (const ShGeneric< K, T > &p, bool useTexture)
 Generates a cell noise value using unit cube cells.
template<int K>
static ShGeneric< M, T > linnoise (const ShGeneric< K, T > &p, bool useTexture)
 Generates a single octave of bilinearly interpolated cellnoise.

Detailed Description

template<int M, typename T, int P = 16>
class SH::ShNoise< M, T, P >

A Perlin noise/turbulence generator.

M = dimensions of the result (1 <= M <= 4 currently) P = period of the noise texture

Definition at line 59 of file ShLibNoiseImpl.hpp.


Member Function Documentation

template<int M, typename T, int P>
template<int K>
ShGeneric< M, T > SH::ShNoise< M, T, P >::noise const ShGeneric< K, T > &  p,
bool  useTexture
[static]
 

Generates a single octave Perlin noise with frequency 1 in each of K dimensions.

If useTexture is on, then the pattern * repeats at every P cells.

Definition at line 139 of file ShLibNoiseImpl.hpp.

References SH::ShNoise< M, T, P >::perlin().

template<int M, typename T, int P>
template<int K>
ShGeneric< M, T > SH::ShNoise< M, T, P >::perlin const ShGeneric< K, T > &  p,
bool  useTexture
[static]
 

Generates a single octave Perlin improved noise with frequency 1 in each of K dimensions.

If useTexture is on, then the pattern repeats at every P cells.

Definition at line 147 of file ShLibNoiseImpl.hpp.

References SH::_psmootht(), SH::floor(), SH::frac(), SH::lerp(), and SH::mad().

Referenced by SH::ShNoise< M, T, P >::noise().


The documentation for this class was generated from the following file:
Generated on Wed Nov 9 15:35:26 2005 for Sh by  doxygen 1.4.5