0

需要帮助理解Loop-Blinn 05,我在这里被阻止:

During rasterization, the Graphics Processing Unit (GPU) will calculate 
a texture coordinate for each pixel on the interior of the triangle by 
interpolating the texture coordinates of the triangle vertices. 
We determine if the pixel is inside or outside the curve by evaluating
f (u, v) = u^2 − v

正如标题所说,为什么我们可以使用 (u^2 - v) 确定外部像素?

我缺少任何几何基础吗?视觉解释将是最好的。

4

1 回答 1

0

如果曲线是 形式y=x^2,您知道曲线下方的点有y<x^2, 或x^2-y>0。将 x 替换为 u,将 y 替换为 v,并确定“内部”是指曲线上方还是下方……这就是你的答案。

于 2013-05-01T00:42:05.207 回答