diff --git a/data/assets/default.scene b/data/assets/default.scene index e1cdab4343..4fe83c270c 100644 --- a/data/assets/default.scene +++ b/data/assets/default.scene @@ -6,16 +6,10 @@ asset.onInitialize(function () -- Jump back one day to show a complete planet openspace.time.setTime(openspace.time.advancedTime(now, "-1d")) + openspace.globebrowsing.goToGeo("Earth", 58.5877, 16.1924, 20000000) + openspace.markInterestingNodes({ "Earth", "Mars", "Moon", "Sun" }) - openspace.navigation.setCameraState({ - Anchor = earthAsset.Earth.Identifier, - Position = { 0, 0, 0 }, - Rotation = { 0.758797, 0.221490, -0.605693, -0.091135 }, - }) - - openspace.globebrowsing.goToGeo(58.5877, 16.1924, 20000000) - -- HDR / Image options: openspace.setPropertyValueSingle('RenderEngine.Gamma', 0.95); openspace.setPropertyValueSingle('RenderEngine.HDRExposure', 3.7); diff --git a/data/assets/scene/solarsystem/planets/earth/atmosphere.asset b/data/assets/scene/solarsystem/planets/earth/atmosphere.asset index 641e3a0759..7b3197b84f 100644 --- a/data/assets/scene/solarsystem/planets/earth/atmosphere.asset +++ b/data/assets/scene/solarsystem/planets/earth/atmosphere.asset @@ -16,6 +16,7 @@ local Atmosphere = { PlanetRadius = 6377.0, PlanetAverageGroundReflectance = 0.1, GroundRadianceEmittion = 0.6, + SunIntensity = 6.9, Rayleigh = { Coefficients = { -- Wavelengths are given in 10^-9m diff --git a/modules/atmosphere/rendering/renderableatmosphere.cpp b/modules/atmosphere/rendering/renderableatmosphere.cpp index 47545042b8..d7e556384d 100644 --- a/modules/atmosphere/rendering/renderableatmosphere.cpp +++ b/modules/atmosphere/rendering/renderableatmosphere.cpp @@ -403,6 +403,12 @@ RenderableAtmosphere::RenderableAtmosphere(const ghoul::Dictionary& dictionary) "Atmosphere Effects. Disabling atmosphere effects for this planet." ); } + + if (atmosphereDictionary.hasKey(SunIntensityInfo.identifier)) { + _sunRadianceIntensity = atmosphereDictionary.value( + SunIntensityInfo.identifier + ); + } if (!atmosphereDictionary.getValue( GroundRadianceEmittioninfo.identifier,