mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
Merge branch 'master' of bitbucket.org:danharibo/gtfw
This commit is contained in:
commit
2796ba5e25
@ -68,8 +68,14 @@ GTATypes::RGB mix(GTATypes::RGB x, GTATypes::RGB y, float a)
|
||||
return n;
|
||||
}
|
||||
|
||||
int32_t mixint(int32_t x, int32_t y, float a)
|
||||
{
|
||||
return x * (1.f - a) + y * a;
|
||||
}
|
||||
|
||||
#define MIXPROP(prop) data.prop = mix(x.prop, y.prop, a)
|
||||
#define MIXPROP2(prop) data.prop = glm::mix(x.prop, y.prop, a)
|
||||
#define MIXPROP_INT(prop) data.prop = mixint(x.prop, y.prop, a)
|
||||
|
||||
WeatherLoader::WeatherData WeatherLoader::getWeatherData(WeatherCondition cond, float tod)
|
||||
{
|
||||
@ -87,9 +93,9 @@ WeatherLoader::WeatherData WeatherLoader::getWeatherData(WeatherCondition cond,
|
||||
MIXPROP2(sunCoreSize);
|
||||
MIXPROP2(sunCoronaSize);
|
||||
MIXPROP2(sunBrightness);
|
||||
MIXPROP2(shadowIntensity);
|
||||
MIXPROP2(lightShading);
|
||||
MIXPROP2(poleShading);
|
||||
MIXPROP_INT(shadowIntensity);
|
||||
MIXPROP_INT(lightShading);
|
||||
MIXPROP_INT(poleShading);
|
||||
MIXPROP2(farClipping);
|
||||
MIXPROP2(fogStart);
|
||||
MIXPROP2(amountGroundLight);
|
||||
|
Loading…
Reference in New Issue
Block a user