Skip to content

Commit

Permalink
White background
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Wenger committed Nov 15, 2011
1 parent f6c09fe commit a9c39db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exercises/03-CartoonViewer/CartoonViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ drawCartoon() {

// clear screen
glEnable(GL_DEPTH_TEST);
glClearColor(1,1,1,0);
glClearColor(1.0, 1.0, 1.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

m_cartoonShader.bind();
Expand Down Expand Up @@ -225,7 +225,7 @@ drawDepth() {

// clear screen
glEnable(GL_DEPTH_TEST);
glClearColor(0,0,0,0);
glClearColor(1.0, 1.0, 1.0, 0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

m_depthShader.bind();
Expand All @@ -236,6 +236,7 @@ drawDepth() {
m_depthShader.setMatrix4x4Uniform("modelworld", m_mesh.getTransformation() );
m_depthShader.setFloatUniform("near",m_camera.getNearPlane());
m_depthShader.setFloatUniform("far",m_camera.getFarPlane());
std::cout << "near plane = " << m_camera.getNearPlane() << ", far = " << m_camera.getFarPlane() << std::endl;

glEnableClientState(GL_VERTEX_ARRAY);

Expand Down

0 comments on commit a9c39db

Please sign in to comment.