Ignore:
Timestamp:
Apr 25, 2012, 7:47:48 PM (9 years ago)
Author:
sam
Message:

orbital: fix triangle winding order for some primitives that did not match
the majority.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/mesh.h

    r1286 r1298  
    760760            if (fade)
    761761                SetCurVertColor(m_color2);
    762             AppendTriangle(0, ((i + 1) % nsides) + 1, i + 1, vbase);
     762            AppendTriangle(0, i + 1, ((i + 1) % nsides) + 1, vbase);
    763763            p1 = rotmat * p1;
    764764        }
     
    799799            SetCurVertColor(m_color2);
    800800
    801         AppendQuad(0, 1, 2, 3, m_vert.Count() - 4);
     801        AppendQuad(0, 3, 2, 1, m_vert.Count() - 4);
    802802        ComputeQuadNormals(m_quadidx.Count() - 4, 4);
    803803    }
Note: See TracChangeset for help on using the changeset viewer.