Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A vector that is perpendicular to an object's surface.
2
votes
Accepted
How do I make my indices anti-clockwise, so I can cull triangles in OpenGL? (immediate mode)
Solved by reversing the indices for the problematic bottom face.
Indices are now:
Indices = new int[]
{
// front face
0, 1, 2, 2, 3, 0,
// top face
3, 2, 6, 6, 7, …
2
votes
1
answer
648
views
How do I make my indices anti-clockwise, so I can cull triangles in OpenGL? (immediate mode)
Cube is a class with the vertices, normals, and indices. … 7, 6, 5, 5, 4, 7,
// left face
4, 0, 3, 3, 7, 4,
// bottom face
0, 1, 5, 5, 4, 0,
// right face
1, 5, 6, 6, 2, 1
};
Normals …