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 505 of file noise.cpp.
505 {
507 ans = ans + 17308L;
508 uint32_t pan = ans;
509
510
511
512
513 pan *= 484L;
514 return (pan>>8);
515
516
517
518}
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.