Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vec3 vec(0,1,0);//up direction unit vector
- mat3 orientation = mat3(rotate(30.0f, vec3(1.0, 0.0, 0.0)));//camera is looking 30 angles to the right
- disp(inverse(orientation) * vec);//display
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement