Original Post
According to the tutorial about per pixel lighting I''m reading, to compute the tangent vector of a polygon we must do the following operations:
Vec1 = Vertex3 – Vertex2
Vec2 = Vertex1 – Vertex2
DeltaU1 = Vertex3.u - Vertex2.u
DeltaU2 = Vertex1.u - Vertex2.u
DirectionV = normalize( DeltaU2*Vec1 - DeltaU1*Vec2 )
DirectionU = normalize( cross( DirectionV, Vertex.n ) )
DirectionW = normalize( cross( DirectionU, DirectionV ) )
But wich one here is the tangent vector? DirectionU I suppose... thats right?