optional skyboxes

This commit is contained in:
NatureFreshMilk 2020-01-28 11:17:47 +01:00
parent 8b36b8ab5c
commit 5eb0fa6a1c
6 changed files with 24 additions and 2 deletions

View File

@ -19,5 +19,5 @@ read_globals = {
"vacuum",
-- optional mods
"planetoidgen"
"planetoidgen", "skybox"
}

View File

@ -1,4 +1,5 @@
default
vacuum?
technic_worldgen?
maptools?
maptools?
skybox?

View File

@ -13,4 +13,8 @@ dofile(MP.."/legacy.lua")
dofile(MP.."/ores.lua")
dofile(MP.."/mapgen.lua")
if minetest.get_modpath("skybox") then
dofile(MP.."/skybox.lua")
end
print("[OK] Planet: moon")

17
skybox.lua Normal file
View File

@ -0,0 +1,17 @@
-- space
skybox.register({
name = "space",
miny = 1000,
maxy = 5000,
textures = {"space_sky.png","space_sky2.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png"}
})
-- moon
skybox.register({
name = "moon",
miny = 5001,
maxy = 6000,
always_day = true,
textures = {"space_sky.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png","space_sky.png"}
})

BIN
textures/space_sky.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
textures/space_sky2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB