Optimized noise functions

This commit is contained in:
Christophe Riccio
2016-11-20 23:27:08 +01:00
parent 1bdc671a0d
commit 969394a5eb
2 changed files with 2 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ namespace detail
template <typename T>
GLM_FUNC_QUALIFIER T mod289(T const & x)
{
return x - floor(x * static_cast<T>(1.0) / static_cast<T>(289.0)) * static_cast<T>(289.0);
return x - floor(x * (static_cast<T>(1.0) / static_cast<T>(289.0))) * static_cast<T>(289.0);
}
template <typename T>