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 648 of file noise.cpp.
648 {
650 n += 64;
651 uint8_t ans =
qadd8(n,n);
652 return ans;
653}
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.