3 Copyright (C) 2019 Jordach, Jordan Snelling <jordach.snelling@gmail.com>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 video::SColor day_sky;
25 video::SColor day_horizon;
26 video::SColor dawn_sky;
27 video::SColor dawn_horizon;
28 video::SColor night_sky;
29 video::SColor night_horizon;
30 video::SColor indoors;
35 video::SColor bgcolor;
37 std::vector<std::string> textures;
40 video::SColor fog_sun_tint;
41 video::SColor fog_moon_tint;
42 std::string fog_tint_type;
67 video::SColor starcolor;
74 video::SColor color_bright;
75 video::SColor color_ambient;
81 // Utility class for setting default sky, sun, moon, stars values:
85 static const SkyboxParams getSkyDefaults()
88 sky.bgcolor = video::SColor(255, 255, 255, 255);
91 sky.sky_color = getSkyColorDefaults();
92 sky.fog_sun_tint = video::SColor(255, 244, 125, 29);
93 sky.fog_moon_tint = video::SColorf(0.5, 0.6, 0.8, 1).toSColor();
94 sky.fog_tint_type = "default";
98 static const SkyColor getSkyColorDefaults()
102 sky.day_horizon = video::SColor(255, 144, 211, 246);
103 sky.indoors = video::SColor(255, 100, 100, 100);
104 sky.dawn_horizon = video::SColor(255, 186, 193, 240);
105 sky.night_horizon = video::SColor(255, 64, 144, 255);
107 sky.day_sky = video::SColor(255, 97, 181, 245);
108 sky.dawn_sky = video::SColor(255, 180, 186, 250);
109 sky.night_sky = video::SColor(255, 0, 107, 255);
113 static const SunParams getSunDefaults()
117 sun.sunrise_visible = true;
118 sun.texture = "sun.png";
119 sun.tonemap = "sun_tonemap.png";
120 sun.sunrise = "sunrisebg.png";
125 static const MoonParams getMoonDefaults()
129 moon.texture = "moon.png";
130 moon.tonemap = "moon_tonemap.png";
135 static const StarParams getStarDefaults()
138 stars.visible = true;
140 stars.starcolor = video::SColor(105, 235, 235, 255);
145 static const CloudParams getCloudDefaults()
148 clouds.density = 0.4f;
149 clouds.color_bright = video::SColor(229, 240, 240, 255);
150 clouds.color_ambient = video::SColor(255, 0, 0, 0);
151 clouds.thickness = 16.0f;
153 clouds.speed = v2f(0.0f, -2.0f);