Fixed epsilon for half types

This commit is contained in:
Christophe Riccio
2012-11-06 02:26:31 +01:00
parent 1fb8bec873
commit bfec0e2388
4 changed files with 21 additions and 13 deletions

View File

@@ -34,6 +34,12 @@ namespace glm
return std::numeric_limits<T>::epsilon();
}
template <>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR half epsilon()
{
return half(1.19209290e-007);
}
template <typename T>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR T zero()
{