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) |
Definition at line 531 of file noise.cpp.
531 {
533 ans = ans + 17308L;
534 uint32_t pan = ans;
535
536
537
538
539 pan *= 484L;
540 return (pan>>8);
541
542
543
544}
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, and y.