16-bit, fixed point implementation of Perlin's noise.
- See also
- inoise16_raw()
- Returns
- scaled noise value as an unsigned integer, 0-65535
- Parameters
-
x | x-axis coordinate on noise map (1D) |
y | y-axis coordinate on noise map (2D) |
z | z-axis coordinate on noise map (3D) |
Definition at line 482 of file noise.cpp.
482 {
484 ans = ans + 19052L;
485 uint32_t pan = ans;
486
487
488
489
490 pan *= 440L;
491 return (pan>>8);
492
493
494
495
496}
int16_t inoise16_raw(uint32_t x, uint32_t y, uint32_t z)
16-bit, fixed point implementation of Perlin's noise without scaling.
References inoise16_raw(), x, y, and z.