mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +02:00
Fixed gcc warning.
This commit is contained in:
parent
3e228acdb6
commit
5a1c4d5a30
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ namespace model {
|
|||
// log(m) = p * log(s)
|
||||
// p = log(m) / log(s)
|
||||
inline float convertDirectionalLightAngleToPower(const float directionalLightAngle) {
|
||||
return (float)((LOG_P_05 / log(cos(RADIANS_PER_DEGREE * directionalLightAngle))));
|
||||
return LOG_P_05 / (float)log(cos(RADIANS_PER_DEGREE * directionalLightAngle));
|
||||
}
|
||||
|
||||
const glm::vec3 initialHazeColor{ 0.5f, 0.6f, 0.7f };
|
||||
|
|
Loading…
Reference in a new issue