diff --git a/data/assets/base.asset b/data/assets/base.asset index 989f888df3..c6b295ab4e 100644 --- a/data/assets/base.asset +++ b/data/assets/base.asset @@ -7,6 +7,7 @@ asset.require('./base_blank') -- Specifying which other assets should be loaded in this scene asset.require('scene/solarsystem/sun/sun') asset.require('scene/solarsystem/sun/glare') +asset.require('scene/solarsystem/sun/habitablezone') asset.require('scene/solarsystem/sun/default_layers') asset.require('scene/solarsystem/planets/planets') asset.require('scene/solarsystem/planets/default_layers') diff --git a/data/assets/scene/solarsystem/sun/habitablezone.asset b/data/assets/scene/solarsystem/sun/habitablezone.asset new file mode 100644 index 0000000000..3dbf0efe65 --- /dev/null +++ b/data/assets/scene/solarsystem/sun/habitablezone.asset @@ -0,0 +1,35 @@ +local assetHelper = asset.require("util/asset_helper") +local transforms = asset.require("./transforms") + +local color = {0, 1, 0.81}; +local texture = openspace.absPath(openspace.createPixelImage('sun_habitable_zone', color)); + +local HabitableZone = { + Identifier = "SunHabitableZone", + Parent = transforms.SunECLIPJ2000.Identifier, + Renderable = { + Type = "RenderableHabitableZone", + Enabled = false, + Texture = texture, + EffectiveTemperature = 5780, -- Kelvin + Luminosity = 1, -- solar + Opacity = 0.06 + }, + GUI = { + Name = "Sun Habitable Zone", + Path = "/Solar System/Sun", + Description = "Habitable zone for the sun in our solar system." + } +} + +assetHelper.registerSceneGraphNodesAndExport(asset, { HabitableZone }) + +asset.meta = { + Name = "Sun Habitable Zone", + Version = "1.0", + Description = [[ The habitable zone around our sun]], + Author = "OpenSpace Team", + URL = "http://openspaceproject.com", + License = "MIT license", + Identifiers = {"SunHabitableZone"} +}