This commit is contained in:
2019-03-14 12:43:41 +01:00
parent 101792b011
commit 9378c685a8
12 changed files with 276 additions and 30 deletions
+4
View File
@@ -24,6 +24,10 @@ void runProgram(GLFWwindow* window, CommandLineOptions options)
// Configure miscellaneous OpenGL settings
glEnable(GL_CULL_FACE);
//enable alpha
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// Set default colour after clearing the colour buffer
glClearColor(0.3f, 0.5f, 0.8f, 1.0f);