Advertisement
Guest User

v x p matrix

a guest
Jan 22nd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. VIEW PROJ 0.001, 10.0, 45.0, 0.6(near, far, fov, ar)
  2.  
  3. 1 0 0 0 2.414 0.0 0.0 0.0 2.414 0.0 0.0 0.0
  4. 0 1 0 0 x 0.0 1.449 0.0 0.0 = 0.0 1.449 0.0 0.0
  5. 0 0 -1 0 0.0 0.0 -1.0 -0.002 0.0 0.0 1.0 0.002
  6. 0 0 0 0 0.0 0.0 -1.0 0.0 0.0 0.0 -1.0 0.0
  7.  
  8.  
  9. and my vertices:
  10. const GLfloat v[28] = { //already a vbo no need to create
  11. //FRONT
  12. -0.5, 0.5, 0.0, 1.0, 0.6, 0.0, 0.0, // 0 red top left
  13. -0.5, -0.5, 0.0, 1.0, 0.0, 0.6, 0.0, // 1 green bottom left
  14. 0.5, 0.5, 0.0, 1.0, 0.0, 0.0, 0.6, // 2 blue top right
  15. 0.5, -0.5, 0.0, 1.0, 0.6, 0.6, 0.0 // 3 yellow bottom right
  16. };
  17.  
  18. But I don't see anything onscreen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement