Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. utanför loopen:
  2. XMMATRIX WVP;
  3. XMMATRIX World;
  4. XMMATRIX camView;
  5. XMMATRIX camProjection;
  6.  
  7. XMVECTOR camPosition;
  8. XMVECTOR camTarget;
  9. XMVECTOR camUp;
  10.  
  11. camPosition = XMVectorSet(0.0f, 0.0f, -0.5f, 0.0f);
  12. camTarget = XMVectorSet(0.0f, 0.0f, 0.0f, 0.0f);
  13. camUp = XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);
  14.  
  15. #innanför loopen. typ
  16.  
  17. World = XMMatrixIdentity();
  18. World = XMMatrixRotationY(currentTimeInSeconds) * XMMatrixTranslation(0.0f, 0.0f, 3.0f) ;
  19. WVP = World * camView * camProjection;
  20.  
  21.  
  22. colourLevels.matrisken = XMMatrixTranspose(WVP);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement