Added some textures and fixed camera perspective
This commit is contained in:
Executable
BIN
Binary file not shown.
Regular → Executable
+11
-3
@@ -77,12 +77,20 @@ void dd::Camera::SetOrientation(glm::quat val)
|
|||||||
|
|
||||||
void dd::Camera::UpdateProjectionMatrix()
|
void dd::Camera::UpdateProjectionMatrix()
|
||||||
{
|
{
|
||||||
m_ProjectionMatrix = glm::perspective(
|
m_ProjectionMatrix = glm::ortho(
|
||||||
m_FOV,
|
-16.f,
|
||||||
m_AspectRatio,
|
16.f,
|
||||||
|
-9.f,
|
||||||
|
9.f,
|
||||||
m_NearClip,
|
m_NearClip,
|
||||||
m_FarClip
|
m_FarClip
|
||||||
);
|
);
|
||||||
|
// m_ProjectionMatrix = glm::perspective(
|
||||||
|
// m_FOV,
|
||||||
|
// m_AspectRatio,
|
||||||
|
// m_NearClip,
|
||||||
|
// m_FarClip
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
void dd::Camera::UpdateViewMatrix()
|
void dd::Camera::UpdateViewMatrix()
|
||||||
|
|||||||
Reference in New Issue
Block a user