mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 13:02:24 +02:00
Enabled haze to be vertically inverted (ceiling lower than base)
This commit is contained in:
parent
9ad9c070f8
commit
6a089be973
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ namespace graphics {
|
|||
// limit range and altitude to no less than 1.0 metres
|
||||
static inline float convertHazeRangeToHazeRangeFactor(const float hazeRange) { return -LOG_P_005 / glm::max(hazeRange, 1.0f); }
|
||||
|
||||
static inline float convertHazeAltitudeToHazeAltitudeFactor(const float hazeHeight) { return -LOG_P_005 / glm::max(hazeHeight, 1.0f); }
|
||||
static inline float convertHazeAltitudeToHazeAltitudeFactor(const float hazeHeight) { return -(LOG_P_005 * glm::sign(hazeHeight)) / glm::max(glm::abs(hazeHeight), 1.0f); }
|
||||
|
||||
// Derivation (s is the proportion of sun blend, a is the angle at which the blend is 50%, solve for m = 0.5
|
||||
// s = dot(lookAngle, sunAngle) = cos(a)
|
||||
|
|
Loading…
Reference in a new issue