Update data files and generate habitable zone texture on demand

This commit is contained in:
Emma Broman
2020-12-14 11:28:53 +01:00
parent 9898714478
commit e525c55ecf
4 changed files with 86 additions and 6 deletions

View File

@@ -1543,6 +1543,17 @@ scripting::LuaLibrary OpenSpaceEngine::luaLibrary() {
"string, string",
"Removes a tag (second argument) from a scene graph node (first argument)"
},
{
"createPixelImage",
&luascriptfunctions::createPixelImage,
{},
"string, vec3",
"Creates a 1 pixel image with a certain color in the cache folder and "
"returns the path to the file. If a cached file with the given name "
"already exists, the path to that file is returned. The first argument "
"is the name of the file, without extension. The second is the RGB "
"color, given as {r, g, b} with values between 0 and 1."
},
{
"isMaster",
&luascriptfunctions::isMaster,