A gray tank! :D

This commit is contained in:
2014-04-05 01:24:19 +02:00
parent ed29297d00
commit ad2862bf84
15 changed files with 289 additions and 18 deletions
+5 -4
View File
@@ -14,7 +14,7 @@ Renderer::Renderer()
m_DrawBounds = false;
#endif
m_ShadowMapRes = 2048*8;
m_ShadowMapRes = 2048;
m_SunPosition = glm::vec3(0, 1.5f, 10);
m_SunTarget = glm::vec3(0, 0, 0);
m_SunProjection = glm::ortho<float>(-200, 200, -100, 400, -800, 600);
@@ -30,9 +30,10 @@ void Renderer::Initialize()
}
// Create a window
WIDTH = 1920;
HEIGHT = 1080;
glfwWindowHint(GLFW_SAMPLES, 16);
WIDTH = 1280;
HEIGHT = 720;
// Antialiasing
//glfwWindowHint(GLFW_SAMPLES, 16);
m_Window = glfwCreateWindow(WIDTH, HEIGHT, "OpenGL", nullptr, nullptr);
if (!m_Window) {
LOG_ERROR("GLFW: Failed to create window");