Commit 3096fd5b authored by Oliver Bock's avatar Oliver Bock
Browse files

Make Earth 20% translucent (IFOs unaffected though)

parent 7249d4cb
......@@ -246,12 +246,22 @@ void PulsarAnimationWidget::paintGL()
glRotatef(90, 1.0, 0.0, 0.0);
glRotatef(180, 1.0, 1.0, 0.0);
glDisable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
glColor4f(1.0, 1.0, 1.0f, 0.8f);
// create texture coordinates and enable texturing
gluQuadricTexture(m_quadricEarth, GL_TRUE);
glBindTexture(GL_TEXTURE_2D, m_beamTexture);
glEnable(GL_TEXTURE_2D);
glCullFace(GL_FRONT);
gluSphere(m_quadricEarth, m_earthRadius, 32, 32);
glCullFace(GL_BACK);
gluSphere(m_quadricEarth, m_earthRadius, 32, 32);
glDisable(GL_CULL_FACE);
glEnable(GL_DEPTH_TEST);
}
glPopMatrix();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment