Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
3096fd5b
Commit
3096fd5b
authored
Sep 14, 2017
by
Oliver Bock
Browse files
Make Earth 20% translucent (IFOs unaffected though)
parent
7249d4cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
3096fd5b
...
...
@@ -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.0
f
,
0.8
f
);
// 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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment