diff --git a/src/Components/DirectionalLightComponent.hpp b/src/Components/DirectionalLightComponent.hpp index 1ba21a81..781744f5 100644 --- a/src/Components/DirectionalLightComponent.hpp +++ b/src/Components/DirectionalLightComponent.hpp @@ -17,7 +17,7 @@ class DirectionalLightComponent : public BaseComponent CascadePlanes = {0.01, 2.0, 5.0, 10.0, 100.0}; + inline static std::vector CascadePlanes = {0.01, 5.0, 15.0, 30.0, 100.0}; glm::mat4 getLightSpaceMatrix( const TransformComponent& lightTransformComponent, diff --git a/src/ui/UI.cpp b/src/ui/UI.cpp index 6edd52b0..70a89fb0 100644 --- a/src/ui/UI.cpp +++ b/src/ui/UI.cpp @@ -54,8 +54,8 @@ void UI::initializeImgui() { #elif defined(__APPLE__) // GL 3.2 + GLSL 150 const char* glsl_version = "#version 150"; - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); - glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1); + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // Required on Mac