mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
Optimized noise functions
This commit is contained in:
parent
1bdc671a0d
commit
969394a5eb
@ -14,7 +14,7 @@ namespace detail
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_QUALIFIER T mod289(T const & x)
|
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>
|
template <typename T>
|
||||||
|
@ -63,6 +63,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
|
|||||||
- Added lowp variant of GTC_colorspace convertLinearToSRGB #419
|
- Added lowp variant of GTC_colorspace convertLinearToSRGB #419
|
||||||
- Replaced the manual by a markdown version #458
|
- Replaced the manual by a markdown version #458
|
||||||
- Optimized GTC_packing implementation
|
- Optimized GTC_packing implementation
|
||||||
|
- Optimized noise functions
|
||||||
- Added FAQ 12: Windows headers cause build errors... #557
|
- Added FAQ 12: Windows headers cause build errors... #557
|
||||||
|
|
||||||
#### Fixes:
|
#### Fixes:
|
||||||
|
Loading…
Reference in New Issue
Block a user