swapped sun to renderablesphere

This commit is contained in:
Sovanny Huy
2019-05-23 15:34:10 -04:00
parent 8ba797eba6
commit e2dbbe6ccd
6 changed files with 241 additions and 236 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ asset.require('util/default_dashboard')
-- asset.require('util/webgui')
asset.request('customization/globebrowsing')
-- asset.request('customization/globebrowsing')
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
-- local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
local sunAsset = asset.require('scene/solarsystem/sun/sun')
local sunRadius = 695508000
@@ -58,7 +58,7 @@ asset.onInitialize(function ()
})
openspace.setPropertyValue("Scene.Sun.Renderable.Enabled", true)
-- openspace.setPropertyValue("Scene.SunGlare.Renderable.Enabled", false)
openspace.setPropertyValue("Scene.SunGlare.Renderable.Enabled", false)
-- Place by the sun
openspace.navigation.setCameraState({
+5 -13
View File
@@ -7,19 +7,11 @@ local Sun = {
Identifier = "Sun",
Parent = transforms.SunIAU.Identifier,
Renderable = {
Type = "RenderableGlobe",
Enabled = false,
Radii = { 6.957E8, 6.957E8, 6.957E8 },
SegmentsPerPatch = 64,
Layers = {
ColorLayers = {
{
Identifier = "Texture",
FilePath = textures .. "/sun.jpg",
Enabled = true
}
}
},
Type = "RenderableSphere",
Enabled = true,
Size = 6.957E8, -- Radii = { 6.957E8, 6.957E8, 6.957E8 },
Segments = 64,
Texture = textures .. "/sun.jpg",
PerformShading = false
},
GUI = {