Changes for assignment 2

This commit is contained in:
Michael
2020-02-24 09:27:27 +01:00
parent 7495f21d70
commit 8d2bdbe9d8
2 changed files with 7 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ void runProgram(GLFWwindow* window, CommandLineOptions options)
// Disable built-in dithering
glDisable(GL_DITHER);
// Enable transparency
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);