summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-05-06 02:15:49 -0400
committerSebastian Park <SebPark03@gmail.com>2024-05-06 02:15:49 -0400
commit85e2ef8c9d7cdb24715a7375e149d5d1e7d580b1 (patch)
tree92ca052fb3afcdb9c7e7a928029f944d4bd9b636 /src
parent72bcf6a346dfcaeaac9520d8c524711192e77c3d (diff)
change clear colors and set input name from color to normal.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/glwidget.cpp5
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);