Remove all QUADS usage. Replaced with TRIANGLES and TRIANGLE_STRIP. May do another pass and replace un-textured TRIANGLE_STRIPs with TRIANGLES to reduce flush calls.
This commit is contained in:
@@ -82,16 +82,16 @@ void LLBox::renderface(S32 which_face)
|
||||
{7, 4, 0, 3}
|
||||
};
|
||||
|
||||
gGL.begin(LLRender::QUADS);
|
||||
gGL.begin(LLRender::TRIANGLE_STRIP);
|
||||
//gGL.normal3fv(&normals[which_face][0]);
|
||||
gGL.texCoord2f(1,0);
|
||||
gGL.vertex3fv(&mVertex[ faces[which_face][0] ][0]);
|
||||
gGL.texCoord2f(1,1);
|
||||
gGL.vertex3fv(&mVertex[ faces[which_face][1] ][0]);
|
||||
gGL.texCoord2f(0,1);
|
||||
gGL.vertex3fv(&mVertex[ faces[which_face][2] ][0]);
|
||||
gGL.vertex3fv(&mVertex[ faces[which_face][2]][0]);
|
||||
gGL.texCoord2f(0,0);
|
||||
gGL.vertex3fv(&mVertex[ faces[which_face][3] ][0]);
|
||||
gGL.vertex3fv(&mVertex[ faces[which_face][3]][0]);
|
||||
gGL.texCoord2f(1, 1);
|
||||
gGL.vertex3fv(&mVertex[faces[which_face][1]][0]);
|
||||
gGL.texCoord2f(1, 0);
|
||||
gGL.vertex3fv(&mVertex[faces[which_face][0]][0]);
|
||||
gGL.end();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user