|
Blender
V2.93
|
#include <Noise.h>
Public Member Functions | |
| Noise (long seed=-1) | |
| ~Noise () | |
| float | turbulence1 (float arg, float freq, float amp, unsigned oct=4) |
| float | turbulence2 (Vec2f &v, float freq, float amp, unsigned oct=4) |
| float | turbulence3 (Vec3f &v, float freq, float amp, unsigned oct=4) |
| float | smoothNoise1 (float arg) |
| float | smoothNoise2 (Vec2f &vec) |
| float | smoothNoise3 (Vec3f &vec) |
| Freestyle::Noise::Noise | ( | long | seed = -1 | ) |
Builds a Noise object
Definition at line 238 of file Noise.cpp.
References _NOISE_B, BLI_rng_free(), BLI_rng_get_int(), BLI_rng_new(), float(), Freestyle::normalize2(), Freestyle::normalize3(), and seed.
Returns a smooth noise value for a 2D element
Definition at line 142 of file Noise.cpp.
References Freestyle::a, AT2, LERP, SCURVE, SETUP, t, v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().
Referenced by turbulence2().
Returns a smooth noise value for a 3D element
Definition at line 181 of file Noise.cpp.
References Freestyle::a, AT3, Freestyle::c, LERP, SCURVE, SETUP, t, v, Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().
Referenced by turbulence3().
Returns a noise value for a 1D element
Definition at line 86 of file Noise.cpp.
References smoothNoise1(), and t.
Returns a noise value for a 2D element
Definition at line 98 of file Noise.cpp.
References smoothNoise2(), t, v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().
Returns a noise value for a 3D element
Definition at line 111 of file Noise.cpp.
References smoothNoise3(), t, v, Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().