clipping to viewport