diff --git a/glm/detail/_noise.hpp b/glm/detail/_noise.hpp index 89403f4a..d7d7d186 100644 --- a/glm/detail/_noise.hpp +++ b/glm/detail/_noise.hpp @@ -14,7 +14,7 @@ namespace detail template GLM_FUNC_QUALIFIER T mod289(T const & x) { - return x - floor(x * static_cast(1.0) / static_cast(289.0)) * static_cast(289.0); + return x - floor(x * (static_cast(1.0) / static_cast(289.0))) * static_cast(289.0); } template diff --git a/readme.md b/readme.md index 3df46310..6c4a47e4 100644 --- a/readme.md +++ b/readme.md @@ -63,6 +63,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate) - Added lowp variant of GTC_colorspace convertLinearToSRGB #419 - Replaced the manual by a markdown version #458 - Optimized GTC_packing implementation +- Optimized noise functions - Added FAQ 12: Windows headers cause build errors... #557 #### Fixes: