Rendering a wave effect