Phong shading of triangle - normals NA, NB and NC are given. Before converting scanline at y (y in a screen-space!) normals N(A-B) and N(A-C) are calculated using simple linear interpolation. Then, for each pixel in scanline, another normal NX is interpolated and used as parameter of some lighting model (like Lambert, Phong, Blinn, etc.).
pl:Opis
Trójkąt: cieniowanie Phonga - normalne NA, NB i NC są dane. Przed rasteryzacją pikseli w wierszu y (y jest podany we współrzędnych ekranu!) obliczane są normalne N(A-B) i N(A-C) - używana jest interpolacja liniowa. Następnie, dla każdego piksela w wierszu wyznaczana jest normalna NX i używana jako parametr jakiegoś modelu oświetlenia (jak oświetlenie Lamberta, Phonga, Blinna itp.).
Conditions d’utilisation
Public domainPublic domainfalsefalse
Moi, propriétaire des droits d’auteur sur cette œuvre, la place dans le domaine public. Ceci s'applique dans le monde entier. Dans certains pays, ceci peut ne pas être possible ; dans ce cas : J’accorde à toute personne le droit d’utiliser cette œuvre dans n’importe quel but, sans aucune condition, sauf celles requises par la loi.
Légendes
Ajoutez en une ligne la description de ce que représente ce fichier