2013-05-01 33 views
0

需要幫助瞭解Loop-Blinn 05,我在這裏阻止:爲什麼我們可以使用(u^2 - v)確定外部像素?

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)?

任何幾何基礎我失蹤了?視覺解釋將是最好的。

回答

0

如果曲線的形式爲y=x^2,則知道曲線下方的點有y<x^2x^2-y>0。將x替換爲u,y和v,並決定「內部」是指曲線的上方還是下方......並且有答案。

+0

真的有幫助.Thanxxx! – Maadiah 2013-05-01 00:50:02

相關問題