mirror of
https://github.com/lubosz/overte.git
synced 2025-08-13 07:18:24 +02:00
commit
cddf587d6b
1 changed files with 2 additions and 2 deletions
|
@ -435,8 +435,8 @@ void generateBasisVectors(const glm::vec3& primaryAxis, const glm::vec3& seconda
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
const float MIN_LENGTH_SQUARED = 1.0e-6f;
|
const float MIN_LENGTH_SQUARED = 1.0e-6f;
|
||||||
#endif
|
#endif
|
||||||
assert(fabsf(glm::length2(primaryAxis) > MIN_LENGTH_SQUARED));
|
assert(glm::length2(primaryAxis) > MIN_LENGTH_SQUARED);
|
||||||
assert(fabsf(glm::length2(secondaryAxis) > MIN_LENGTH_SQUARED));
|
assert(glm::length2(secondaryAxis) > MIN_LENGTH_SQUARED);
|
||||||
|
|
||||||
uAxisOut = glm::normalize(primaryAxis);
|
uAxisOut = glm::normalize(primaryAxis);
|
||||||
glm::vec3 normSecondary = glm::normalize(secondaryAxis);
|
glm::vec3 normSecondary = glm::normalize(secondaryAxis);
|
||||||
|
|
Loading…
Reference in a new issue