Blender
V3.3
|
#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 224 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 128 of file Noise.cpp.
References Freestyle::a, AT2, usdtokens::b(), LERP, SCURVE, SETUP, sx, sy, 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 167 of file Noise.cpp.
References Freestyle::a, AT3, usdtokens::b(), Freestyle::c, LERP, SCURVE, SETUP, sy, 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 72 of file Noise.cpp.
References smoothNoise1(), and t.
Returns a noise value for a 2D element
Definition at line 84 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 97 of file Noise.cpp.
References smoothNoise3(), t, v, Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().