добавленно частичное сглаживание

This commit is contained in:
lllzebralll
2022-12-01 20:37:30 +03:00
parent fea123bc5f
commit f04bac6b43
10 changed files with 92 additions and 36 deletions
+3 -1
View File
@@ -13,7 +13,7 @@ int Window::initialize(int width, int height, const char* title){
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_RESIZABLE, GL_TRUE);
//glfwWindowHint(GLFW_SAMPLES, 2);
glfwWindowHint(GLFW_SAMPLES, 16);
window = glfwCreateWindow(width, height, title, nullptr, nullptr);
if (window == nullptr){
@@ -34,6 +34,8 @@ int Window::initialize(int width, int height, const char* title){
glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
glEnable(GL_BLEND);
glEnable(GL_MULTISAMPLE);
// glDisable(GL_MULTISAMPLE);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Window::width = width;