14#ifndef STACKEDPERLINNOISE2_H
15#define STACKEDPERLINNOISE2_H
29 double scale_factor = 4.0f,
double amp_scale = 0.5f,
30 int table_size = 256,
unsigned long seed = 0);
37 INLINE
double noise(
double x,
double y);
38 INLINE
float noise(
const LVecBase2f &value);
39 double noise(
const LVecBase2d &value);
41 INLINE
double operator ()(
double x,
double y);
42 INLINE
float operator ()(
const LVecBase2f &value);
43 INLINE
double operator ()(
const LVecBase2d &value);
52 typedef pvector<Noise> Noises;
This class provides an implementation of Perlin noise for 2 variables.
void add_level(const PerlinNoise2 &level, double amp=1.0)
Adds an arbitrary PerlinNoise2 object, and an associated amplitude, to the stack.
void clear()
Removes all levels from the stack.
StackedPerlinNoise2()
Creates a StackedPerlinNoise2 object with no levels.
double noise(double x, double y)
Returns the noise function of the three inputs.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.