Added: assimp implementation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user