Commit bc109f7d authored by Oliver Bock's avatar Oliver Bock
Browse files

Position source based on actual sky position

parent 02000531
......@@ -338,18 +338,19 @@ void PulsarAnimationWidget::paintGL()
// draw source
glPushMatrix();
{
glTranslatef(3.0,
3.0,
-3.0);
glRotatef(-23.384, 0.0, 0.0, 1.0);
glRotatef(41.093, 0.0, 1.0, 0.0);
glTranslatef(0.0,
0.0,
5.0);
glRotatef(m_sourceInclination, 0.0, 1.0, 0.0);
glRotatef(-45, 0.0, 1.0, 0.0);
glRotatef(90, 1.0, 0.0, 0.0);
glRotatef(180, 0.0, 1.0, 0.0);
glPushMatrix();
{
glRotatef(m_sourceIota, 1.0, 0.0, 0.0);
glRotatef(-45, 1.0, 0.0, 0.0);
// draw source plane normal
glColor3f(1.0f, 0.0f, 0.0f);
......
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