Commit 43587639 authored by Florian Oetke's avatar Florian Oetke
Browse files

updated README and fixed missing constexpr round

parent c581cc90
......@@ -21,8 +21,8 @@ Mirrage (Mirrage Indirect Radiance Renderer And Game Engine) is a Vulkan based d
### Dependencies
Required:
- CMake >= 3.8
- SDL2 >= 2.0.7
- Vulkan + Vulkan-HPP >= 1.1.70
- SDL2 >= 2.0.8
- Vulkan + Vulkan-HPP >= 1.1.80
- GLSLC (if MIRRAGE_COMPILE_SHADERS is ON)
......
......@@ -56,7 +56,7 @@ namespace mirrage::renderer {
static constexpr auto pack_speed(float v)
{
return std::uint8_t(std::round(std::clamp(v / 10 * 255, 0.f, 255.f)));
return std::uint8_t(0.5f + (std::clamp(v / 10 * 255, 0.f, 255.f)));
}
static constexpr auto unpack_speed(std::uint8_t v) { return float(v) * 10 / 255; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment