Constexpr time_to_daynight_ratio
This commit is contained in:
parent
10e80b624e
commit
55504accc5
@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
inline u32 time_to_daynight_ratio(float time_of_day, bool smooth)
|
||||
constexpr u32 time_to_daynight_ratio(float time_of_day, bool smooth)
|
||||
{
|
||||
float t = time_of_day;
|
||||
if (t < 0.0f)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user