Added weather pressets
This commit is contained in:
parent
ac4e41269b
commit
6f077553c6
|
@ -11,22 +11,29 @@ namespace rpc {
|
|||
|
||||
using WP = WeatherParameters;
|
||||
|
||||
// cloudiness precip. prec.dep. wind azimuth altitude fog dens fog dist fog fall wetness scat.i mie.scat.s rayleigh.scat.scale
|
||||
WP WP::Default = { -1.0f, -1.0f, -1.0f, -1.00f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::ClearNoon = { 15.0f, 0.0f, 0.0f, 0.35f, 0.0f, 75.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::CloudyNoon = { 80.0f, 0.0f, 0.0f, 0.35f, 0.0f, 75.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::WetNoon = { 20.0f, 0.0f, 50.0f, 0.35f, 0.0f, 75.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::WetCloudyNoon = { 80.0f, 0.0f, 50.0f, 0.35f, 0.0f, 75.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::MidRainyNoon = { 80.0f, 30.0f, 50.0f, 0.40f, 0.0f, 75.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::HardRainNoon = { 90.0f, 60.0f, 100.0f, 1.00f, 0.0f, 75.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::SoftRainNoon = { 70.0f, 15.0f, 50.0f, 0.35f, 0.0f, 75.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::ClearSunset = { 15.0f, 0.0f, 0.0f, 0.35f, 0.0f, 15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::CloudySunset = { 80.0f, 0.0f, 0.0f, 0.35f, 0.0f, 15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::WetSunset = { 20.0f, 0.0f, 50.0f, 0.35f, 0.0f, 15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::WetCloudySunset = { 90.0f, 0.0f, 50.0f, 0.35f, 0.0f, 15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::MidRainSunset = { 80.0f, 30.0f, 50.0f, 0.40f, 0.0f, 15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::HardRainSunset = { 80.0f, 60.0f, 100.0f, 1.00f, 0.0f, 15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
WP WP::SoftRainSunset = { 90.0f, 15.0f, 50.0f, 0.35f, 0.0f, 15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0331f};
|
||||
// cloudiness precip. prec.dep. wind azimuth altitude fog dens fog dist fog fall wetness scat.i mie.scat.s rayleigh.scat.scale
|
||||
WP WP::Default = { -1.0f, -1.0f, -1.0f, -1.00f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::ClearNoon = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, 45.0f, 2.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::CloudyNoon = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::WetNoon = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::WetCloudyNoon = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::MidRainyNoon = { 60.0f, 60.0f, 60.0f, 60.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::HardRainNoon = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, 45.0f, 7.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::SoftRainNoon = { 20.0f, 30.0f, 50.0f, 30.0f, -1.0f, 45.0f, 3.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::ClearSunset = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::CloudySunset = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, 15.0f, 3.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::WetSunset = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::WetCloudySunset = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::MidRainSunset = { 60.0f, 60.0f, 60.0f, 60.0f, -1.0f, 15.0f, 3.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::HardRainSunset = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, 15.0f, 7.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::SoftRainSunset = { 20.0f, 30.0f, 50.0f, 30.0f, -1.0f, 15.0f, 2.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::ClearNight = { 5.0f, 0.0f, 0.0f, 10.0f, -1.0f, -90.0f, 60.0f, 75.0f, 1.0f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::CloudyNight = { 60.0f, 0.0f, 0.0f, 10.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 0.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::WetNight = { 5.0f, 0.0f, 50.0f, 10.0f, -1.0f, -90.0f, 60.0f, 75.0f, 1.0f, 60.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::WetCloudyNight = { 60.0f, 0.0f, 50.0f, 10.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 60.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::SoftRainNight = { 60.0f, 30.0f, 50.0f, 30.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 60.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::MidRainyNight = { 80.0f, 60.0f, 60.0f, 60.0f, -1.0f, -90.0f, 60.0f, 0.75f, 0.1f, 80.0f, 0.0f, 0.03f, 0.0331f};
|
||||
WP WP::HardRainNight = { 100.0f, 100.0f, 90.0f, 100.0f, -1.0f, -90.0f, 100.0f, 0.75f, 0.1f, 100.0f, 0.0f, 0.03f, 0.0331f};
|
||||
|
||||
} // namespace rpc
|
||||
} // namespace carla
|
||||
|
|
|
@ -36,6 +36,13 @@ namespace rpc {
|
|||
static WeatherParameters MidRainSunset;
|
||||
static WeatherParameters HardRainSunset;
|
||||
static WeatherParameters SoftRainSunset;
|
||||
static WeatherParameters ClearNight;
|
||||
static WeatherParameters CloudyNight;
|
||||
static WeatherParameters WetNight;
|
||||
static WeatherParameters WetCloudyNight;
|
||||
static WeatherParameters SoftRainNight;
|
||||
static WeatherParameters MidRainyNight;
|
||||
static WeatherParameters HardRainNight;
|
||||
|
||||
/// @}
|
||||
|
||||
|
|
|
@ -84,4 +84,11 @@ void export_weather() {
|
|||
cls.attr("MidRainSunset") = cr::WeatherParameters::MidRainSunset;
|
||||
cls.attr("HardRainSunset") = cr::WeatherParameters::HardRainSunset;
|
||||
cls.attr("SoftRainSunset") = cr::WeatherParameters::SoftRainSunset;
|
||||
cls.attr("ClearNight") = cr::WeatherParameters::ClearNight;
|
||||
cls.attr("CloudyNight") = cr::WeatherParameters::CloudyNight;
|
||||
cls.attr("WetNight") = cr::WeatherParameters::WetNight;
|
||||
cls.attr("WetCloudyNight") = cr::WeatherParameters::WetCloudyNight;
|
||||
cls.attr("SoftRainNight") = cr::WeatherParameters::SoftRainNight;
|
||||
cls.attr("MidRainyNight") = cr::WeatherParameters::MidRainyNight;
|
||||
cls.attr("HardRainNight") = cr::WeatherParameters::HardRainNight;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue