Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- utanför loopen:
- XMMATRIX WVP;
- XMMATRIX World;
- XMMATRIX camView;
- XMMATRIX camProjection;
- XMVECTOR camPosition;
- XMVECTOR camTarget;
- XMVECTOR camUp;
- camPosition = XMVectorSet(0.0f, 0.0f, -0.5f, 0.0f);
- camTarget = XMVectorSet(0.0f, 0.0f, 0.0f, 0.0f);
- camUp = XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);
- #innanför loopen. typ
- World = XMMatrixIdentity();
- World = XMMatrixRotationY(currentTimeInSeconds) * XMMatrixTranslation(0.0f, 0.0f, 3.0f) ;
- WVP = World * camView * camProjection;
- colourLevels.matrisken = XMMatrixTranspose(WVP);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement