What about Z?
Vmax(x3,y3,z3)
Vmid(x2,y2,z2)
Vmin(x1,y1,z1)
Need to interpolate Z values for each fragment
zp
xa,ys,za
xb,ys,zb
Linear Interpolation:
za = z3 - (z3-z1)*[ (y3-ys)/y3-y1)]
zb = z3 - (z3-z2)*[(y3-ys)/(y3-y2)]
zp = zb - (zb - za)*[(xb - xp)/(xb - xa)]
Previous slide
Next slide
Back to first slide
View graphic version