Created
December 10, 2018 00:38
-
-
Save Jordach/8c2a18497eb73bf4324d546d479b0069 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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