Implement Quaternions

Undefined behaviour of the light source
This commit is contained in:
4VRDriver
2020-09-17 21:23:38 +02:00
parent ef3211fc9d
commit 3c7968407b
11 changed files with 48 additions and 41 deletions

View File

@@ -28,12 +28,22 @@ Window::Window() {
// Enable z buffer
glEnable(GL_DEPTH_TEST);
// Enable face culling
glEnable(GL_CULL_FACE);
glFrontFace(GL_CW);
glCullFace(GL_FRONT);
// Disable mouse cursor
#ifdef _DEBUG
mouseCatched = false;
#endif
setCatchedCursor(mouseCatched);
// Maximize in release build
#ifndef _DEBUG
glfwMaximizeWindow(window);
#endif
#ifdef _DEBUG
std::cout << "OpenGL version: " << glGetString(GL_VERSION) << std::endl;
glEnable(GL_DEBUG_OUTPUT);