
上QQ阅读APP看书,第一时间看更新
Entwined with the concept of a camera is the concept of a viewport. So we will also create our own viewport. A viewport is a 2D surface which is used for rendering. We can think of it as the paper on which a photo is taken. The paper has a background color and if the photo doesn't cover this region, the background color will be seen.