调整边界框位置到相机前方 z=80
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -254,7 +254,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
|
||||
staticMeshComponent.Render(commandList);
|
||||
|
||||
DirectX::XMMATRIX bboxScale = DirectX::XMMatrixScaling(bboxSize[0], bboxSize[1], bboxSize[2]);
|
||||
DirectX::XMMATRIX bboxTranslate = DirectX::XMMatrixTranslation(bboxCenter[0], bboxCenter[1], bboxCenter[2]);
|
||||
DirectX::XMMATRIX bboxTranslate = DirectX::XMMatrixTranslation(0.0f, 0.0f, 80.0f);
|
||||
DirectX::XMMATRIX bboxModel = bboxScale * bboxTranslate;
|
||||
DirectX::XMMATRIX bboxViewProj = bboxModel * viewMatrix * projectionMatrix;
|
||||
DirectX::XMFLOAT4X4 bboxViewProjMat;
|
||||
|
||||
Reference in New Issue
Block a user