15 #ifndef STACKEDPERLINNOISE2_H 16 #define STACKEDPERLINNOISE2_H 18 #include "pandabase.h" 19 #include "perlinNoise2.h" 31 StackedPerlinNoise2(
double sx,
double sy,
int num_levels = 2,
32 double scale_factor = 4.0f,
double amp_scale = 0.5f,
33 int table_size = 256,
unsigned long seed = 0);
34 StackedPerlinNoise2(
const StackedPerlinNoise2 ©);
35 void operator = (
const StackedPerlinNoise2 ©);
37 void add_level(
const PerlinNoise2 &level,
double amp = 1.0);
40 INLINE
double noise(
double x,
double y);
44 INLINE
double operator ()(
double x,
double y);
45 INLINE
float operator ()(
const LVecBase2f &value);
46 INLINE
double operator ()(
const LVecBase2d &value);
59 #include "stackedPerlinNoise2.I" This is the base class for all two-component vectors and points.
This class provides an implementation of Perlin noise for 2 variables.
Implements a multi-layer PerlinNoise, with one or more high-frequency noise functions added to a lowe...
This is the base class for all two-component vectors and points.