Skip to content

Instantly share code, notes, and snippets.

@Jordach
Created December 10, 2018 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jordach/8c2a18497eb73bf4324d546d479b0069 to your computer and use it in GitHub Desktop.
Save Jordach/8c2a18497eb73bf4324d546d479b0069 to your computer and use it in GitHub Desktop.
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