Add Liang–Barsky line clipping for viewport.