主权项 |
1. A method of rendering graphics, the graphics including three-dimensional content depicting a sequence of motion, the method comprising:
a) rendering the three-dimensional content as mapped to a two-dimensional viewing window; and b) rendering a reference image onto the viewing window in addition to the three-dimensional content, wherein the reference image is defined at one or more portions of the viewing window, wherein the one or more portions are less than an entirety of the viewing window, and wherein said rendering the reference image in b) comprises, for each given portion of the one or more portions:
i) determining whether a depth of the three-dimensional content mapped to the given portion is beyond a depth threshold by checking a depth value of the content contained in a depth buffer,ii) occluding the content mapped to the given portion with the reference image when it is determined in i) that the depth of the content mapped to the given portion is beyond the depth threshold, andiii) occluding the reference image with the content mapped to the given portion when it is determined in i) that the depth of the content mapped to the given portion is not beyond the depth threshold. |