Transforming from Viewing Space to Normalized Device Coordinates