Skip to content

Instantly share code, notes, and snippets.

@Jordach

Jordach/example.lua

Created Dec 10, 2018
Embed
What would you like to do?
player:set_sky({
base_color = minetest.rgba(
result_fog.r,
result_fog.g,
result_fog.b),
type = "skybox",
textures = {
sky_tex_top,
sky_tex_bottom,
sky_tex_side,
sky_tex_side,
sky_tex_side,
sky_tex_side
},
clouds = false,
dynamic_color = {
--day_sky = "#ffffff",
--day_horizon = "#000000",
--dawn_sky = "#00ff00",
--dawn_horizon = "#0000ff",
--night_sky = "#ffffff",
--night_horizon = "#ffffff",
--indoors = "#ffffff"
},
directional_fog = true
}
)
player:set_sun({
visible = true,
texture = "sun.png",
tonemap = "sun_tonemap.png",
sunrise = "",
rotation = 70,
size = 1,
})
player:set_moon({
visible = true,
texture = "",
tonemap = "",
rotation = 50,
size = 2,
})
player:set_stars({
visible = true, -- setting to false will ignore other star settings
amount = 15000,
color = "#ff00ffb",
flicker = "#00ff00", -- what colour is minimum for flickering stars?
rotation = 55, -- valid numbers 0 -> 360
size = 0.25,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment