Definition at line 34 of file perlin_s16x16.cpp.hpp.
36 {
37 int X, Y;
41 X &= 255;
42 Y &= 255;
43
44 fl::i32 u =
fade(
x, fade_lut);
45 fl::i32 v =
fade(
y, fade_lut);
46
47 int A = perm[X & 255] + Y;
48 int AA = perm[A & 255];
49 int AB = perm[(A + 1) & 255];
50 int B = perm[(X + 1) & 255] + Y;
51 int BA = perm[
B & 255];
52 int BB = perm[(
B + 1) & 255];
53
59
61}
static constexpr int FRAC_BITS
FL_DISABLE_WARNING_PUSH unsigned char * B
expected< T, E > result
Alias for expected (Rust-style naming)
static fl::i32 fade(fl::i32 t, const fl::i32 *table)
static constexpr fl::i32 HP_ONE
static void floor_frac(fl::i32 fp16, int &ifloor, fl::i32 &frac24)
static fl::i32 lerp(fl::i32 t, fl::i32 a, fl::i32 b)
static constexpr int HP_BITS
static fl::i32 grad(int hash, fl::i32 x, fl::i32 y)
References fl::B, fade(), floor_frac(), fl::s16x16::FRAC_BITS, grad(), HP_BITS, HP_ONE, lerp(), fl::x, and fl::y.
Referenced by fl::FlowFieldFP::flowPrepare(), pnoise2d(), and fl::render_value_fp().