Added: assimp implementation

This commit is contained in:
2026-10-19 18:30:50 +02:00
parent 13691e3da3
commit 2246370722
18 changed files with 205 additions and 34 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
UINT Camera::init(UINT width, UINT height)
{
// view matrix
XMVECTOR position = XMVectorSet(0.0f, 0.0f, -2.0f, 0.0f);
XMVECTOR position = XMVectorSet(0.0f, 100.0f, -500.0f, 0.0f);
XMVECTOR forward = XMVectorSet(0.0f, 0.0f, 1.0f, 0.0f);
XMVECTOR up = XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f);
@@ -14,7 +14,7 @@ UINT Camera::init(UINT width, UINT height)
float fov = XMConvertToRadians(60.0f);
float aspectRatio = static_cast<float>(width) / static_cast<float>(height);
float nearClippingPlane = 0.3f;
float farClippingPlane = 10.0f;
float farClippingPlane = 1000.0f;
XMMATRIX projection = XMMatrixPerspectiveFovLH(fov, aspectRatio, nearClippingPlane, farClippingPlane);
XMStoreFloat4x4(&_projectionMatrix, projection);