Tiled 3D Amortized Noise
A Program to Generate Infinite3D Grayscale Noise Textures with Amortized Noise
|
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. | |
#define MurmurHash3_32 MurmurHash3_x86_32 |
Copyright Ian Parberry, September 2013. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
Created by Ian Parberry, September 2013. Last updated May 7, 2014.