Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Camera
- Vertice cam_Posicao(0, 0, 5);
- Vertice cam_LookAt(0, 0, 0);
- Vertice cam_Up(0, 1, 0);
- Vertice cam_Z = (cam_Posicao - cam_LookAt) / cam_Z.normaVetor(cam_Posicao - cam_LookAt);
- Vertice cam_X = cam_X.prodVetorial(cam_Up, cam_Z) / cam_X.normaVetor( cam_X.prodVetorial(cam_Up, cam_Z) );
- Vertice cam_Y = cam_Y.prodVetorial(cam_Z, cam_X) / cam_Y.normaVetor(cam_Y.prodVetorial(cam_Z, cam_X));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement