Skip to content

Commit

Permalink
Add a note about vertex ordering for front vs back faces.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm committed Jun 18, 2010
1 parent 50e03ad commit fac0b58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pre3d.js
Expand Up @@ -485,6 +485,7 @@ var Pre3d = (function() {
// the data up to date, QuadFace stores a pre-calculated centroid and two
// normals (two triangles in a quad). This is an optimization for rendering
// and procedural operations, and you must set them correctly.
// NOTE: The front of a QuadFace has vertices in counter-clockwise order.
function QuadFace(i0, i1, i2, i3) {
this.i0 = i0;
this.i1 = i1;
Expand Down

0 comments on commit fac0b58

Please sign in to comment.