Tiled 2D Amortized Noise
A Program to Generate Infinite Grayscale Noise Textures with Amortized Noise
|
Some common defines used in several places. More...
Go to the source code of this file.
Macros | |
#define | MurmurHash3_32 MurmurHash3_x86_32 |
MurmurHash3 for x86 architectures. | |
#define | B 0x100 |
Perlin's B, a power of 2 usually equal to 256. | |
#define | BM 0xff |
A bit mask, one less than B. | |
#define | lerp(t, a, b) (a + t*(b - a)) |
Linear interpolation. | |
#define | s_curve(t) (t * t * (3.0f - 2.0f*t)) |
Cubic spline. | |
#define | s_curve2(t) (t * t * t * (10.0f + 3.0f * t * (2.0f*t - 5.0f))) |
Quintic spline. | |
Defines that include constants for Perlin's gradient table and functions for linear interpolation, cubic splines, and quintic splines.