3. The function g|ClearColor(1.0,1.0, 1.0,0,0); sets the background color to
Answers
Answered by
0
When I draw shapes on a black background with glClearColor(0.0, 0.0, 0.0, 1.0);, everything gets drawn perfectly on a black background, like this:
enter image description here
Now when I increase the RGB closer to white (0.8, 0.8, 0.8, 1.0), things get fade out, like this:
enter image description here
When it's white, everything is completely fade out:
enter image description here
Changing the alpha to 0.0 doesn't make a difference either. I'm calling these two functions at the beginning of each frame (and their order doesn't make a difference):
glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT
Similar questions