Skip to content

Commit

Permalink
Fixed screen flashing during solar eclipse (bug #747)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Aug 30, 2019
1 parent ff548d9 commit 413ba7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/modules/Atmosphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ void Atmosphere::computeColor(double JD, Vec3d _sunPos, Vec3d moonPos, float moo
Vec3f sunPosF=_sunPos.toVec3f();
Vec3f moonPosF=moonPos.toVec3f();

float separation_angle = std::acos(sunPosF.dot(moonPosF)); // angle between them
// NB: conversion to float here will be caused screen flashing during solar eclipse! -- AW
float separation_angle = std::acos(_sunPos.dot(moonPos)); // angle between them
// qDebug("touch at %f\tnow at %f (%f)\n", touch_angle, separation_angle, separation_angle/touch_angle);
// bright stars should be visible at total eclipse
// TODO: correct for atmospheric diffusion
Expand Down

0 comments on commit 413ba7b

Please sign in to comment.