mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Fixed upper limit bug and added new asset details to main asteroid belt
This commit is contained in:
@@ -3,6 +3,7 @@ asset.require('./base')
|
||||
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
|
||||
asset.require('scene/solarsystem/planets/earth/satellites/satellites.asset')
|
||||
asset.require('scene/solarsystem/sssb/pha')
|
||||
asset.require('scene/solarsystem/sssb/main_asteroid_belt')
|
||||
|
||||
asset.onInitialize(function ()
|
||||
local now = openspace.time.currentWallTime()
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sharedSssb = asset.require('./sssb_shared')
|
||||
|
||||
local filepath = sharedSssb.downloadSssbDatabaseFile(asset, 'main asteroid belt', 'sssb_data_main_asteroid_belt')
|
||||
local object = sharedSssb.createSssbGroupObject("sssb_data_main_asteroid_belt.csv", filepath, { 0.9, 0.3, 0.1 })
|
||||
object.Renderable.Enabled = false
|
||||
object.Renderable.Segments = 40
|
||||
object.Renderable.Fade = 3
|
||||
object.Renderable.UpperLimit = 50000
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { object })
|
||||
Reference in New Issue
Block a user