|
|
D3DXMATRIX matWorld;
D3DXMatrixTranslation(&matWorld,10,0,0);
g_pD3DDevice->SetTransform(D3DTS_WORLD,&matWorld);
/*D3DXMATRIX matView;
D3DXMatrixLookAtLH(&matView,
&D3DXVECTOR3(0.0f,3.0f,-5.0f),
&D3DXVECTOR3(0.0f,0.0f,0.0f),
&D3DXVECTOR3(0.0f,1.0f,0.0f));
g_pD3DDevice->SetTransform(D3DTS_VIEW,&matView);
D3DXMATRIX matProj;
D3DXMatrixPerspectiveFovLH(&matProj,D3DX_PI/4,1.0f,1.0f,100.0f);
g_pD3DDevice->SetTransform(D3DTS_PROJECTION,&matProj);
平移后没影响,而不用贴图的话就可以有效果出来 |
|