Revert "Revert "Changes for assignment 2""

This reverts commit 751c02edc8.
This commit is contained in:
2022-02-21 13:17:22 +01:00
parent 751c02edc8
commit c6240e8a3d
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);