Advertisement
Guest User

Untitled

a guest
Dec 12th, 2014
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. vec3 vec(0,1,0);//up direction unit vector
  2. mat3 orientation = mat3(rotate(30.0f, vec3(1.0, 0.0, 0.0)));//camera is looking 30 angles to the right
  3.  
  4. disp(inverse(orientation) * vec);//display
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement