mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 01:09:34 -05:00
swapped sun to renderablesphere
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user