A tricky hlsl problem positional wrapping or clipping on the vertex shader ?

Try atan2(direction.y,direction.x) to change the action plane