diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/glwidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glwidget.cpp b/src/glwidget.cpp index c13d476..06461d0 100755 --- a/src/glwidget.cpp +++ b/src/glwidget.cpp @@ -64,7 +64,7 @@ void GLWidget::initializeGL() fprintf(stdout, "Successfully initialized GLEW %s\n", glewGetString(GLEW_VERSION)); // Set clear color to white - glClearColor(0, 0, 0, 1); + glClearColor(1, 0.98f, 0.85f, 1); // Enable depth-testing and backface culling glEnable(GL_DEPTH_TEST); @@ -168,6 +168,8 @@ void GLWidget::initializeGL() } void GLWidget::paintCaustics() { + glClearColor(0.68f, 0.58f, 0.38f, 1); + glBindFramebuffer(GL_FRAMEBUFFER, m_fbo); // Task 15: Clear the screen here @@ -303,6 +305,7 @@ void GLWidget::makeFBO() { void GLWidget::paintGL() { paintCaustics(); + glClearColor(0.56f, 0.69f, 0.74f, 1); glBindFramebuffer(GL_FRAMEBUFFER, m_defaultFBO); // return; // paintTexture(m_ground_texture, false); |