lsdi

02-14-2002, 08:51 PM

How to calculate the normals(and normalize) of this quad?

GLfloat vertices_x1;

GLfloat vertices_y1;

GLfloat vertices_z1;

GLfloat vertices_x2;

GLfloat vertices_y2;

GLfloat vertices_z2;

GLfloat vertices_x3;

GLfloat vertices_y3;

GLfloat vertices_z3;

GLfloat vertices_x4;

GLfloat vertices_y4;

GLfloat vertices_z4;

GLfloat vertices_x1;

GLfloat vertices_y1;

GLfloat vertices_z1;

GLfloat vertices_x2;

GLfloat vertices_y2;

GLfloat vertices_z2;

GLfloat vertices_x3;

GLfloat vertices_y3;

GLfloat vertices_z3;

GLfloat vertices_x4;

GLfloat vertices_y4;

GLfloat vertices_z4;