PDA

View Full Version : sharpgl anti aliasing



tn88test
07-03-2017, 10:04 PM
I follow a tutorial from learnopengl.com, and I can not get anti aliasing to work. I tried this code and it does nothing. Is there another way to do anti aliasing? Any help is appreciated, thanks.



gl.Enable(OpenGL.GL_MULTISAMPLE);

Silence
07-03-2017, 10:36 PM
Was your framebuffer created with multisample ?
From learnopengl.com (https://learnopengl.com/#!Advanced-OpenGL/Anti-Aliasing), before enabling multisample:



glfwWindowHint(GLFW_SAMPLES, 4);


How do you create your window ?