mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-10 07:18:46 -05:00
Merge branch 'feature/FXAA' into integration/FXAA_Vol_Milkway
This commit is contained in:
@@ -10,11 +10,6 @@ asset.onInitialize(function ()
|
||||
openspace.globebrowsing.goToGeo("Earth", 58.5877, 16.1924, 20000000)
|
||||
|
||||
openspace.markInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
||||
|
||||
-- HDR / Image options:
|
||||
openspace.setPropertyValueSingle('RenderEngine.Gamma', 0.95);
|
||||
openspace.setPropertyValueSingle('RenderEngine.HDRExposure', 3.7);
|
||||
openspace.setPropertyValueSingle('RenderEngine.Saturation', 1.0);
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
|
||||
@@ -58,12 +58,14 @@ end)
|
||||
asset.onDeinitialize(function ()
|
||||
-- Remove the frontend endpoint
|
||||
local directories = openspace.getPropertyValue("Modules.WebGui.Directories")
|
||||
local newDirectories;
|
||||
local newDirectories = {};
|
||||
|
||||
openspace.setPropertyValueSingle("Modules.WebGui.DefaultEndpoint", "")
|
||||
|
||||
for i = 0, #directories, 2 do
|
||||
if (string.find(directories[i], "frontend") == nil) then
|
||||
-- @TODO(abock, 2019-08-20) The explicit check for directories[i] is a workaround
|
||||
-- for an error that was otherwise thrown when directories[i] was nil
|
||||
if (directories[i] and string.find(directories[i], "frontend") == nil) then
|
||||
newDirectories[#newDirectories + 1] = directories[i]
|
||||
newDirectories[#newDirectories + 1] = directories[i + 1]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user