I'm having some trouble with math behind per-pixel lighting when using normal maps. This is what I understand so far (please correct me if I'm mistaken): In the case of a single triangle, the T,B,N vectors for each vertex are the same, and is equal to the T,B,N vectors of the face. To light the face, the light vector is…