|
invq = 1.0F / VB->TexCoord[i][3];
texcoord[0] = VB->TexCoord[i][0] * invq;
texcoord[1] = VB->TexCoord[i][1] * invq;
texcoord[2] = VB->TexCoord[i][2] * invq;
texcoord[3] = VB->TexCoord[i][3];
FEEDBACK_TOKEN( ctx, (GLfloat) GL_POINT_TOKEN ); | |||||||||||||||
| ||||||||||||||||
The feedback points function takes in a vertex buffer and calculates texture coordinates for a feedback buffer. The function was selected for its medium size and simple structure. There is also a fair level of parallelism available.