Use fract instead of floor for waves