mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Light curve: Simplify and improve code, fix darkened daytime sky (#7693)
This commit is contained in:
@@ -243,6 +243,11 @@ inline s32 myround(f32 f)
|
||||
return (s32)(f < 0.f ? (f - 0.5f) : (f + 0.5f));
|
||||
}
|
||||
|
||||
inline constexpr f32 sqr(f32 f)
|
||||
{
|
||||
return f * f;
|
||||
}
|
||||
|
||||
/*
|
||||
Returns integer position of node in given floating point position
|
||||
*/
|
||||
|
Reference in New Issue
Block a user