The Correct way to populate a lighting buffer

I am having difficulty properly calculating the lighting coords
for some irregular quads (Corners bent up.) How are the four
points supposed to correlate with the four vertex coords?
The tutorial deals with 0, 0, 1 which is not a in-depth example.

This is the OpenCL forum and it looks like your question is related to OpenGL, a different standard.