20 #ifndef ANTKEEPER_PHYSICS_LIGHT_EV_HPP
21 #define ANTKEEPER_PHYSICS_LIGHT_EV_HPP
47 return std::log2((l * s) / k);
62 return std::log2((e * s) / c);
77 return std::log2((n * n) / t * T(100) / s);
consteval T exp2(T x) noexcept
Compile-time exp2 for unsigned integrals.
T from_illuminance(T e, T s, T c)
Exposure value from illuminance.
T to_luminance(T ev, T s, T k)
Exposure value to luminance.
T from_luminance(T l, T s, T k)
Exposure value from luminance.
T from_settings(T n, T t, T s)
Exposure value from exposure settings.
T to_illuminance(T ev, T s, T c)
Exposure value to illuminance.