8-Bit, fixed point implementation of Perlin's noise.
- See also
- inoise8_raw()
- Returns
- scaled noise value as an unsigned integer, 0-255
- Parameters
-
x | x-axis coordinate on noise map (1D) |
Definition at line 694 of file noise.cpp.
694 {
696 n += 64;
697 uint8_t ans =
qadd8(n,n);
698 return ans;
699}
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
int8_t inoise8_raw(uint16_t x, uint16_t y, uint16_t z)
8-bit, fixed point implementation of Perlin's noise without scaling.
References inoise8_raw(), qadd8(), and x.