Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // f n l r t b
- static const GLfloat cube_light[] =
- {
- // f
- -.5f,-.5f,.5f, // lbf
- .5f,-.5f,.5f, // rbf
- -.5f, .5f,.5f, // ltf
- .5f, .5f,.5f, // rtf
- // n
- -.5f,-.5f,-.5f, // lbn
- .5f,-.5f,-.5f, // rbn
- -.5f, .5f,-.5f, // ltn
- .5f, .5f,-.5f, // rtn
- // l
- -.5f,-.5f,-.5f, // lbn
- -.5f,-.5f, .5f, // lbf
- -.5f, .5f,-.5f, // ltn
- -.5f, .5f, .5f, // ltf
- // r
- .5f,-.5f,-.5f, // rbn
- .5f,-.5f, .5f, // rbf
- .5f, .5f,-.5f, // rtn
- .5f, .5f, .5f, // rtf
- // t
- -.5f, .5f,-.5f, // ltn
- -.5f, .5f, .5f, // ltf
- .5f, .5f,-.5f, // rtn
- .5f, .5f, .5f, // rtf
- // b
- -.5f,-.5f,-.5f, // lbn
- -.5f,-.5f, .5f, // lbf
- .5f,-.5f,-.5f, // rbn
- .5f,-.5f, .5f, // rbf
- };
- static const GLubyte cube_indices_light_cw[] =
- {
- 1, 2, 0, 1, 3, 2, // f
- 2, 1, 0, 2, 3, 1, // n
- 1, 2, 0, 3, 2, 1, // l
- 2, 1, 0, 2, 3, 1, // r
- 1, 2, 0, 1, 3, 2, // t
- 2, 1, 0, 2, 3, 1 // b
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement