Small change to render test

This commit is contained in:
Michaël Lemaire 2016-01-18 23:43:20 +01:00
parent fe24a0f48d
commit 9b3251ee54
2 changed files with 1 additions and 4 deletions

View file

@ -38,7 +38,7 @@ class DEFINITIONSHARED_EXPORT Scenery : public DefinitionNode {
static constexpr double SUN_DISTANCE = 149597870.0; static constexpr double SUN_DISTANCE = 149597870.0;
static constexpr double SUN_DISTANCE_SCALED = SUN_DISTANCE * KM_TO_UNIT; static constexpr double SUN_DISTANCE_SCALED = SUN_DISTANCE * KM_TO_UNIT;
static constexpr double SUN_RADIUS = 6.955e5; static constexpr double SUN_RADIUS = 695700.0;
static constexpr double SUN_RADIUS_SCALED = SUN_RADIUS * KM_TO_UNIT; static constexpr double SUN_RADIUS_SCALED = SUN_RADIUS * KM_TO_UNIT;
static constexpr double ATMOSPHERE_WIDTH = 61.0; static constexpr double ATMOSPHERE_WIDTH = 61.0;

View file

@ -437,8 +437,6 @@ static void testCelestialBodies() {
scenery.getAtmosphere()->setDayTime(23); scenery.getAtmosphere()->setDayTime(23);
startTestRender(&renderer, "celestial_bodies_moon_night"); startTestRender(&renderer, "celestial_bodies_moon_night");
scenery.getCamera()->setFov(0.2);
scenery.getAtmosphere()->setDayTime(6); scenery.getAtmosphere()->setDayTime(6);
scenery.getCamera()->setTarget(scenery.getAtmosphere()->childSun()->getLocation()); scenery.getCamera()->setTarget(scenery.getAtmosphere()->childSun()->getLocation());
startTestRender(&renderer, "celestial_bodies_sun_horizon"); startTestRender(&renderer, "celestial_bodies_sun_horizon");
@ -448,7 +446,6 @@ static void testCelestialBodies() {
startTestRender(&renderer, "celestial_bodies_sun_rising"); startTestRender(&renderer, "celestial_bodies_sun_rising");
scenery.getAtmosphere()->setDayTime(11); scenery.getAtmosphere()->setDayTime(11);
scenery.getCamera()->setFov(0.1);
scenery.getAtmosphere()->childSun()->propPhi()->setValue( scenery.getAtmosphere()->childSun()->propPhi()->setValue(
scenery.getAtmosphere()->childMoon()->propPhi()->getValue()); scenery.getAtmosphere()->childMoon()->propPhi()->getValue());