726 B
726 B
Task 2
a)
What is the name of this phenomenon?
Clipping
When does it occur?
It occurs when some part of an object is outside the clipping volume which is a 2x2x2 cube at the origin with coordinate values ranging from -1 to 1. Since the z coordinate for v0 and v1 is 1.2 and -1.2, whic is outside this range, the triangle is clipped by the vertex shader and the part which sticks out is not rendered. The two corners have essentially been clipped off by the clip box.
What is its purpose?
The clip box ensures that objects behind the camera and generally when geometry exceeds the bounds of the screen.